From ef9526a4d5ea6642f48a7b04e0def29d2b0cfdd6 Mon Sep 17 00:00:00 2001 From: TigranIskandaryan Date: Thu, 19 Jan 2023 17:22:35 +0300 Subject: [PATCH 1/3] Small fix to extrinsics test --- Example/Tests/TestExtrinsics.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Example/Tests/TestExtrinsics.swift b/Example/Tests/TestExtrinsics.swift index 5c6d730..4c53d66 100644 --- a/Example/Tests/TestExtrinsics.swift +++ b/Example/Tests/TestExtrinsics.swift @@ -75,7 +75,7 @@ class TestExtrinsics: XCTestCase { ) ] -// try testCases.append(contentsOf: generatedAddMemoCases()) + try testCases.append(contentsOf: generatedAddMemoCases()) return testCases } From 353eaaced3b2be77f27be01040fc9d0e81479632 Mon Sep 17 00:00:00 2001 From: TigranIskandaryan Date: Thu, 19 Jan 2023 21:14:44 +0300 Subject: [PATCH 2/3] Reverted back the last change --- Example/Tests/TestExtrinsics.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Example/Tests/TestExtrinsics.swift b/Example/Tests/TestExtrinsics.swift index 4c53d66..5c6d730 100644 --- a/Example/Tests/TestExtrinsics.swift +++ b/Example/Tests/TestExtrinsics.swift @@ -75,7 +75,7 @@ class TestExtrinsics: XCTestCase { ) ] - try testCases.append(contentsOf: generatedAddMemoCases()) +// try testCases.append(contentsOf: generatedAddMemoCases()) return testCases } From a76f5a96b70f499d147c2960a780e56523147cec Mon Sep 17 00:00:00 2001 From: Alex Oakley Date: Sat, 6 May 2023 22:12:00 -0700 Subject: [PATCH 3/3] Added SPM Support --- .gitignore | 5 + Example/Podfile.lock | 14 +- Package.resolved | 140 ++++++++++++++++++ Package.swift | 40 +++++ README.md | 14 +- .../Extrinsics/Call.swift | 0 .../Extrinsics/Era.swift | 0 .../Extrinsics/ExtrinsicError.swift | 0 .../Extrinsics/Payload.swift | 0 .../Extrinsics/SignedPayload.swift | 0 .../Extrinsics/UnsignedPayload.swift | 0 .../Hashers/DefaultHashersProvider.swift | 0 .../Hashers/HashersProvider.swift | 0 .../Hashers/StorageHasher.swift | 0 .../Metadata/Lookup/RuntimeLookup.swift | 0 .../Metadata/Lookup/RuntimeLookupItem.swift | 0 .../Metadata/Lookup/RuntimeType.swift | 0 .../Lookup/Type/Def/RuntimeTypeDefArray.swift | 0 .../Type/Def/RuntimeTypeDefBitSequence.swift | 0 .../Type/Def/RuntimeTypeDefCompact.swift | 0 .../Type/Def/RuntimeTypeDefComposite.swift | 0 .../Lookup/Type/Def/RuntimeTypeDefField.swift | 0 .../Type/Def/RuntimeTypeDefPrimitive.swift | 0 .../Type/Def/RuntimeTypeDefSequence.swift | 0 .../Lookup/Type/Def/RuntimeTypeDefTuple.swift | 0 .../Type/Def/RuntimeTypeDefVariant.swift | 0 .../Metadata/Lookup/Type/RuntimeTypeDef.swift | 0 .../Lookup/Type/RuntimeTypeParam.swift | 0 .../Metadata/Modules/RuntimeModule.swift | 0 .../Modules/RuntimeModuleConstant.swift | 0 .../Item/RuntimeModuleStorageItem.swift | 0 .../RuntimeModuleStorageItemModifier.swift | 0 .../Type/RuntimeModuleStorageItemType.swift | 0 .../RuntimeModuleStorageItemTypeMap.swift | 0 .../RuntimeModuleStorageItemTypePlain.swift | 0 .../Storage/RuntimeModuleStorage.swift | 0 .../Storage/RuntimeModuleStorageHasher.swift | 0 .../Metadata/RuntimeExtrinsic.swift | 0 .../Metadata/RuntimeMetadata.swift | 0 .../Modules/Chain/ChainModule.swift | 0 .../Modules/Crowdloan/Calls/AddMemo.swift | 0 .../Modules/DefaultModuleProvider.swift | 0 .../Modules/ModuleProvider.swift | 0 .../Modules/Payment/PaymentModule.swift | 0 .../Payment/Types/QueryFeeDetails.swift | 0 .../Modules/State/StateModule.swift | 0 .../System/Constants/RuntimeVersion.swift | 0 .../Modules/System/Storage/Account.swift | 0 .../Modules/System/SystemModule.swift | 0 .../SubstrateClientSwift}/RPC/Nothing.swift | 0 .../SubstrateClientSwift}/RPC/RpcClient.swift | 0 .../RPC/RpcRequest.swift | 0 .../RPC/RpcResponse.swift | 0 .../RPC/RpcResponseError.swift | 0 .../Scale/DynamicAdapter.swift | 0 .../Scale/DynamicAdapterError.swift | 0 .../Scale/DynamicAdapterProvider.swift | 0 .../Scale/DynamicType.swift | 0 .../Scale/DynamicUIntTypes.swift | 0 .../Substrate/JobWithTimeout.swift | 0 .../Substrate/ScaleCodedProvider.swift | 0 .../Substrate/SubstrateClient.swift | 0 .../SubstrateClientNamingPolicy.swift | 0 .../Substrate/SubstrateClientSettings.swift | 0 .../Substrate/SubstrateConstantsService.swift | 0 .../SubstrateExtrinsicsService.swift | 0 .../Substrate/SubstrateLookupService.swift | 0 .../Substrate/SubstrateStorageService.swift | 0 .../WebSocket/SubstrateWebSocketClient.swift | 0 .../WebSocket/SubstrateWebSocketRequest.swift | 0 .../WebSocket/WebSocketClient.swift | 0 .../WebSocket/WebSocketClientFactory.swift | 0 .../WebSocket/WebSocketClientSettings.swift | 0 SubstrateClientSwift.podspec | 13 +- SubstrateClientSwift/Assets/.gitkeep | 0 SubstrateClientSwift/Classes/.gitkeep | 0 76 files changed, 212 insertions(+), 14 deletions(-) create mode 100644 Package.resolved create mode 100644 Package.swift rename {SubstrateClientSwift/Classes => Sources/SubstrateClientSwift}/Extrinsics/Call.swift (100%) rename {SubstrateClientSwift/Classes => Sources/SubstrateClientSwift}/Extrinsics/Era.swift (100%) rename {SubstrateClientSwift/Classes => Sources/SubstrateClientSwift}/Extrinsics/ExtrinsicError.swift (100%) rename {SubstrateClientSwift/Classes => Sources/SubstrateClientSwift}/Extrinsics/Payload.swift (100%) rename {SubstrateClientSwift/Classes => Sources/SubstrateClientSwift}/Extrinsics/SignedPayload.swift (100%) rename {SubstrateClientSwift/Classes => Sources/SubstrateClientSwift}/Extrinsics/UnsignedPayload.swift (100%) rename {SubstrateClientSwift/Classes => Sources/SubstrateClientSwift}/Hashers/DefaultHashersProvider.swift (100%) rename {SubstrateClientSwift/Classes => Sources/SubstrateClientSwift}/Hashers/HashersProvider.swift (100%) rename {SubstrateClientSwift/Classes => Sources/SubstrateClientSwift}/Hashers/StorageHasher.swift (100%) rename {SubstrateClientSwift/Classes => Sources/SubstrateClientSwift}/Metadata/Lookup/RuntimeLookup.swift (100%) rename {SubstrateClientSwift/Classes => Sources/SubstrateClientSwift}/Metadata/Lookup/RuntimeLookupItem.swift (100%) rename {SubstrateClientSwift/Classes => Sources/SubstrateClientSwift}/Metadata/Lookup/RuntimeType.swift (100%) rename {SubstrateClientSwift/Classes => Sources/SubstrateClientSwift}/Metadata/Lookup/Type/Def/RuntimeTypeDefArray.swift (100%) rename {SubstrateClientSwift/Classes => Sources/SubstrateClientSwift}/Metadata/Lookup/Type/Def/RuntimeTypeDefBitSequence.swift (100%) rename {SubstrateClientSwift/Classes => Sources/SubstrateClientSwift}/Metadata/Lookup/Type/Def/RuntimeTypeDefCompact.swift (100%) rename {SubstrateClientSwift/Classes => Sources/SubstrateClientSwift}/Metadata/Lookup/Type/Def/RuntimeTypeDefComposite.swift (100%) rename {SubstrateClientSwift/Classes => Sources/SubstrateClientSwift}/Metadata/Lookup/Type/Def/RuntimeTypeDefField.swift (100%) rename {SubstrateClientSwift/Classes => Sources/SubstrateClientSwift}/Metadata/Lookup/Type/Def/RuntimeTypeDefPrimitive.swift (100%) rename {SubstrateClientSwift/Classes => Sources/SubstrateClientSwift}/Metadata/Lookup/Type/Def/RuntimeTypeDefSequence.swift (100%) rename {SubstrateClientSwift/Classes => Sources/SubstrateClientSwift}/Metadata/Lookup/Type/Def/RuntimeTypeDefTuple.swift (100%) rename {SubstrateClientSwift/Classes => Sources/SubstrateClientSwift}/Metadata/Lookup/Type/Def/RuntimeTypeDefVariant.swift (100%) rename {SubstrateClientSwift/Classes => Sources/SubstrateClientSwift}/Metadata/Lookup/Type/RuntimeTypeDef.swift (100%) rename {SubstrateClientSwift/Classes => Sources/SubstrateClientSwift}/Metadata/Lookup/Type/RuntimeTypeParam.swift (100%) rename {SubstrateClientSwift/Classes => Sources/SubstrateClientSwift}/Metadata/Modules/RuntimeModule.swift (100%) rename {SubstrateClientSwift/Classes => Sources/SubstrateClientSwift}/Metadata/Modules/RuntimeModuleConstant.swift (100%) rename {SubstrateClientSwift/Classes => Sources/SubstrateClientSwift}/Metadata/Modules/Storage/Item/RuntimeModuleStorageItem.swift (100%) rename {SubstrateClientSwift/Classes => Sources/SubstrateClientSwift}/Metadata/Modules/Storage/Item/RuntimeModuleStorageItemModifier.swift (100%) rename {SubstrateClientSwift/Classes => Sources/SubstrateClientSwift}/Metadata/Modules/Storage/Item/Type/RuntimeModuleStorageItemType.swift (100%) rename {SubstrateClientSwift/Classes => Sources/SubstrateClientSwift}/Metadata/Modules/Storage/Item/Type/RuntimeModuleStorageItemTypeMap.swift (100%) rename {SubstrateClientSwift/Classes => Sources/SubstrateClientSwift}/Metadata/Modules/Storage/Item/Type/RuntimeModuleStorageItemTypePlain.swift (100%) rename {SubstrateClientSwift/Classes => Sources/SubstrateClientSwift}/Metadata/Modules/Storage/RuntimeModuleStorage.swift (100%) rename {SubstrateClientSwift/Classes => Sources/SubstrateClientSwift}/Metadata/Modules/Storage/RuntimeModuleStorageHasher.swift (100%) rename {SubstrateClientSwift/Classes => Sources/SubstrateClientSwift}/Metadata/RuntimeExtrinsic.swift (100%) rename {SubstrateClientSwift/Classes => Sources/SubstrateClientSwift}/Metadata/RuntimeMetadata.swift (100%) rename {SubstrateClientSwift/Classes => Sources/SubstrateClientSwift}/Modules/Chain/ChainModule.swift (100%) rename {SubstrateClientSwift/Classes => Sources/SubstrateClientSwift}/Modules/Crowdloan/Calls/AddMemo.swift (100%) rename {SubstrateClientSwift/Classes => Sources/SubstrateClientSwift}/Modules/DefaultModuleProvider.swift (100%) rename {SubstrateClientSwift/Classes => Sources/SubstrateClientSwift}/Modules/ModuleProvider.swift (100%) rename {SubstrateClientSwift/Classes => Sources/SubstrateClientSwift}/Modules/Payment/PaymentModule.swift (100%) rename {SubstrateClientSwift/Classes => Sources/SubstrateClientSwift}/Modules/Payment/Types/QueryFeeDetails.swift (100%) rename {SubstrateClientSwift/Classes => Sources/SubstrateClientSwift}/Modules/State/StateModule.swift (100%) rename {SubstrateClientSwift/Classes => Sources/SubstrateClientSwift}/Modules/System/Constants/RuntimeVersion.swift (100%) rename {SubstrateClientSwift/Classes => Sources/SubstrateClientSwift}/Modules/System/Storage/Account.swift (100%) rename {SubstrateClientSwift/Classes => Sources/SubstrateClientSwift}/Modules/System/SystemModule.swift (100%) rename {SubstrateClientSwift/Classes => Sources/SubstrateClientSwift}/RPC/Nothing.swift (100%) rename {SubstrateClientSwift/Classes => Sources/SubstrateClientSwift}/RPC/RpcClient.swift (100%) rename {SubstrateClientSwift/Classes => Sources/SubstrateClientSwift}/RPC/RpcRequest.swift (100%) rename {SubstrateClientSwift/Classes => Sources/SubstrateClientSwift}/RPC/RpcResponse.swift (100%) rename {SubstrateClientSwift/Classes => Sources/SubstrateClientSwift}/RPC/RpcResponseError.swift (100%) rename {SubstrateClientSwift/Classes => Sources/SubstrateClientSwift}/Scale/DynamicAdapter.swift (100%) rename {SubstrateClientSwift/Classes => Sources/SubstrateClientSwift}/Scale/DynamicAdapterError.swift (100%) rename {SubstrateClientSwift/Classes => Sources/SubstrateClientSwift}/Scale/DynamicAdapterProvider.swift (100%) rename {SubstrateClientSwift/Classes => Sources/SubstrateClientSwift}/Scale/DynamicType.swift (100%) rename {SubstrateClientSwift/Classes => Sources/SubstrateClientSwift}/Scale/DynamicUIntTypes.swift (100%) rename {SubstrateClientSwift/Classes => Sources/SubstrateClientSwift}/Substrate/JobWithTimeout.swift (100%) rename {SubstrateClientSwift/Classes => Sources/SubstrateClientSwift}/Substrate/ScaleCodedProvider.swift (100%) rename {SubstrateClientSwift/Classes => Sources/SubstrateClientSwift}/Substrate/SubstrateClient.swift (100%) rename {SubstrateClientSwift/Classes => Sources/SubstrateClientSwift}/Substrate/SubstrateClientNamingPolicy.swift (100%) rename {SubstrateClientSwift/Classes => Sources/SubstrateClientSwift}/Substrate/SubstrateClientSettings.swift (100%) rename {SubstrateClientSwift/Classes => Sources/SubstrateClientSwift}/Substrate/SubstrateConstantsService.swift (100%) rename {SubstrateClientSwift/Classes => Sources/SubstrateClientSwift}/Substrate/SubstrateExtrinsicsService.swift (100%) rename {SubstrateClientSwift/Classes => Sources/SubstrateClientSwift}/Substrate/SubstrateLookupService.swift (100%) rename {SubstrateClientSwift/Classes => Sources/SubstrateClientSwift}/Substrate/SubstrateStorageService.swift (100%) rename {SubstrateClientSwift/Classes => Sources/SubstrateClientSwift}/WebSocket/SubstrateWebSocketClient.swift (100%) rename {SubstrateClientSwift/Classes => Sources/SubstrateClientSwift}/WebSocket/SubstrateWebSocketRequest.swift (100%) rename {SubstrateClientSwift/Classes => Sources/SubstrateClientSwift}/WebSocket/WebSocketClient.swift (100%) rename {SubstrateClientSwift/Classes => Sources/SubstrateClientSwift}/WebSocket/WebSocketClientFactory.swift (100%) rename {SubstrateClientSwift/Classes => Sources/SubstrateClientSwift}/WebSocket/WebSocketClientSettings.swift (100%) delete mode 100644 SubstrateClientSwift/Assets/.gitkeep delete mode 100644 SubstrateClientSwift/Classes/.gitkeep diff --git a/.gitignore b/.gitignore index eb5dbb1..1139121 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,8 @@ +/Packages +.swiftpm/config/registries.json +.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata +.netrc + .DS_Store # Xcode diff --git a/Example/Podfile.lock b/Example/Podfile.lock index c8c7295..817b4bf 100644 --- a/Example/Podfile.lock +++ b/Example/Podfile.lock @@ -39,11 +39,11 @@ PODS: - Sr25519/CSr25519 - Sr25519/Helpers - SubstrateClientSwift (1.0.0): - - BigInt (~> 5.0.0) - - CommonSwift (~> 1.0.0) - - EncryptingSwift (~> 1.0.0) - - HashingSwift (~> 1.0.0) - - ScaleCodecSwift (~> 1.0.0) + - BigInt (= 5.0.0) + - CommonSwift (= 1.0.0) + - EncryptingSwift (= 1.0.0) + - HashingSwift (= 1.0.0) + - ScaleCodecSwift (= 1.0.0) - UncommonCrypto (0.1.3) - xxHash-Swift (1.1.1) @@ -113,10 +113,10 @@ SPEC CHECKSUMS: ScaleCodecSwift: 2fa35cbc70c5634fdc0960cc6c712e917b2c688c secp256k1.swift: a7e7a214f6db6ce5db32cc6b2b45e5c4dd633634 Sr25519: 87a974e2d714113af55e1d7e5cef1b82864a57bd - SubstrateClientSwift: af132c82e31d514a0623a3011c12344b972cd7bb + SubstrateClientSwift: 6f33ae8aa9cd225576cc1fbd6bdbc3e92cbfab4a UncommonCrypto: 8e6276bd3def28cdbd55966926c38c37ea1c9af5 xxHash-Swift: 13ebcbfc48658a5acf3777751e64b18c0f110d25 PODFILE CHECKSUM: d310bb1702686e171f710a34c73db16dc8901246 -COCOAPODS: 1.11.3 +COCOAPODS: 1.12.1 diff --git a/Package.resolved b/Package.resolved new file mode 100644 index 0000000..b9c1138 --- /dev/null +++ b/Package.resolved @@ -0,0 +1,140 @@ +{ + "pins" : [ + { + "identity" : "base58swift", + "kind" : "remoteSourceControl", + "location" : "https://github.com/keefertaylor/Base58Swift.git", + "state" : { + "revision" : "c689eadcc3256170a9ed709f0c9553efeb7f4fe4", + "version" : "2.1.10" + } + }, + { + "identity" : "bigint", + "kind" : "remoteSourceControl", + "location" : "https://github.com/attaswift/BigInt.git", + "state" : { + "revision" : "19f5e8a48be155e34abb98a2bcf4a343316f0343", + "version" : "5.0.0" + } + }, + { + "identity" : "bip39.swift", + "kind" : "remoteSourceControl", + "location" : "https://github.com/tesseract-one/Bip39.swift.git", + "state" : { + "revision" : "ac728b82520e93a17deb1c2af2c9c952274db703", + "version" : "0.1.1" + } + }, + { + "identity" : "blake2.swift", + "kind" : "remoteSourceControl", + "location" : "https://github.com/tesseract-one/Blake2.swift.git", + "state" : { + "revision" : "106f68231100021e1f745779e241f81a065ad0de", + "version" : "0.1.2" + } + }, + { + "identity" : "common-swift", + "kind" : "remoteSourceControl", + "location" : "https://github.com/sublabdev/common-swift.git", + "state" : { + "revision" : "28234aeec57ce2ae96faa19afa5c8264abf69afd", + "version" : "1.0.0" + } + }, + { + "identity" : "cryptoswift", + "kind" : "remoteSourceControl", + "location" : "https://github.com/krzyzanowskim/CryptoSwift.git", + "state" : { + "revision" : "eee9ad754926c40a0f7e73f152357d37b119b7fa", + "version" : "1.7.1" + } + }, + { + "identity" : "ed25519swift", + "kind" : "remoteSourceControl", + "location" : "https://github.com/pebble8888/ed25519swift.git", + "state" : { + "revision" : "1e821f5516049f5b83aca8cb3b982910cf8c028c", + "version" : "1.2.8" + } + }, + { + "identity" : "encrypting-swift", + "kind" : "remoteSourceControl", + "location" : "https://github.com/sublabdev/encrypting-swift.git", + "state" : { + "revision" : "bad37b585c90b0565042b0d158ee3f75d01a224c", + "version" : "1.0.0" + } + }, + { + "identity" : "hashing-swift", + "kind" : "remoteSourceControl", + "location" : "https://github.com/sublabdev/hashing-swift.git", + "state" : { + "revision" : "3bae0189d56b17dfc93098754196b029c10403ff", + "version" : "1.0.0" + } + }, + { + "identity" : "keccak-swift", + "kind" : "remoteSourceControl", + "location" : "https://github.com/sublabdev/keccak-swift.git", + "state" : { + "revision" : "e26c87a262658bff240486ef3b0d47d30e8f0641", + "version" : "1.0.0" + } + }, + { + "identity" : "scale-codec-swift", + "kind" : "remoteSourceControl", + "location" : "https://github.com/sublabdev/scale-codec-swift.git", + "state" : { + "revision" : "3a45c082ee10ecd5f213436c64212353bcd6b883", + "version" : "1.0.0" + } + }, + { + "identity" : "secp256k1.swift", + "kind" : "remoteSourceControl", + "location" : "https://github.com/Boilertalk/secp256k1.swift.git", + "state" : { + "revision" : "823281fe9def21b384099b72a9a53ca988317b20", + "version" : "0.1.4" + } + }, + { + "identity" : "sr25519.swift", + "kind" : "remoteSourceControl", + "location" : "https://github.com/tesseract-one/Sr25519.swift.git", + "state" : { + "revision" : "d611e002653f4538c3df8feb0fa6e5dd59238f45", + "version" : "0.1.3" + } + }, + { + "identity" : "uncommoncrypto.swift", + "kind" : "remoteSourceControl", + "location" : "https://github.com/tesseract-one/UncommonCrypto.swift.git", + "state" : { + "revision" : "e089407582e1f2d81dc11ba167362742422b8979", + "version" : "0.1.3" + } + }, + { + "identity" : "xxhash-swift", + "kind" : "remoteSourceControl", + "location" : "https://github.com/daisuke-t-jp/xxHash-Swift", + "state" : { + "revision" : "e86a07ab4867f81481d430e1370a5ec97b6e3359", + "version" : "1.1.1" + } + } + ], + "version" : 2 +} diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..61f2e89 --- /dev/null +++ b/Package.swift @@ -0,0 +1,40 @@ +// swift-tools-version:5.6 + +import PackageDescription + +let package = Package( + name: "SubstrateClientSwift", + platforms: [ + .iOS(.v13), + .macOS(.v10_15), + .watchOS(.v6), + .tvOS(.v13) + ], + products: [ + .library( + name: "SubstrateClientSwift", + targets: ["SubstrateClientSwift"] + ), + ], + dependencies: [ + .package(url: "https://github.com/sublabdev/common-swift.git", exact: "1.0.0"), + .package(url: "https://github.com/sublabdev/hashing-swift.git", exact: "1.0.0"), + .package(url: "https://github.com/sublabdev/encrypting-swift.git", exact: "1.0.0"), + .package(url: "https://github.com/sublabdev/scale-codec-swift.git", exact: "1.0.0") + ], + targets: [ + .target( + name: "SubstrateClientSwift", + dependencies: [ + .productItem(name: "CommonSwift", package: "common-swift"), + .productItem(name: "HashingSwift", package: "hashing-swift"), + .productItem(name: "EncryptingSwift", package: "encrypting-swift"), + .productItem(name: "ScaleCodecSwift", package: "scale-codec-swift") + ] + ) + ], + swiftLanguageVersions: [ + .v5 + ] +) + diff --git a/README.md b/README.md index 4a48e9f..0f7ad84 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ -[![CocoaPods Compatible](https://img.shields.io/cocoapods/v/substrate-client-swift)](https://img.shields.io/cocoapods/v/substrate-client-swift) +[![CocoaPods Compatible](https://img.shields.io/cocoapods/v/SubstrateClientSwift)](https://img.shields.io/cocoapods/v/SubstrateClientSwift) [![Swift](https://img.shields.io/badge/Swift-5.0.0-orange?style=flat-square)](https://img.shields.io/badge/Swift-5.0.0-Orange?style=flat-square) [![Telegram channel](https://img.shields.io/badge/chat-telegram-green.svg?logo=telegram)](https://t.me/sublabsupport) [![GitHub License](https://img.shields.io/badge/license-Apache%20License%202.0-blue.svg?style=flat)](http://www.apache.org/licenses/LICENSE-2.0) @@ -28,12 +28,24 @@ Our goal is to have more developers to come into the world of development of cli ## Installation +### CocoaPods + [CocoaPods](https://cocoapods.org) is a dependency manager for Cocoa projects. For usage and installation instructions, visit their website. To integrate Alamofire into your Xcode project using CocoaPods, specify it in your `Podfile`: ```ruby pod 'SubstrateClientSwift' ``` +### Swift Package Manager + +The [Swift Package Manager](https://swift.org/package-manager/) is a tool for automating the distribution of Swift code and is integrated into the `swift` compiler. + +Once you have your Swift package set up, adding SubstrateClientSwift as a dependency is as easy as adding it to the `dependencies` value of your `Package.swift`. + +```swift +.package(url: "https://github.com/sublabdev/substrate-client-swift.git", from: "1.0.0") +``` + ## Usage Examples Usage examples can be found in the bellow link: diff --git a/SubstrateClientSwift/Classes/Extrinsics/Call.swift b/Sources/SubstrateClientSwift/Extrinsics/Call.swift similarity index 100% rename from SubstrateClientSwift/Classes/Extrinsics/Call.swift rename to Sources/SubstrateClientSwift/Extrinsics/Call.swift diff --git a/SubstrateClientSwift/Classes/Extrinsics/Era.swift b/Sources/SubstrateClientSwift/Extrinsics/Era.swift similarity index 100% rename from SubstrateClientSwift/Classes/Extrinsics/Era.swift rename to Sources/SubstrateClientSwift/Extrinsics/Era.swift diff --git a/SubstrateClientSwift/Classes/Extrinsics/ExtrinsicError.swift b/Sources/SubstrateClientSwift/Extrinsics/ExtrinsicError.swift similarity index 100% rename from SubstrateClientSwift/Classes/Extrinsics/ExtrinsicError.swift rename to Sources/SubstrateClientSwift/Extrinsics/ExtrinsicError.swift diff --git a/SubstrateClientSwift/Classes/Extrinsics/Payload.swift b/Sources/SubstrateClientSwift/Extrinsics/Payload.swift similarity index 100% rename from SubstrateClientSwift/Classes/Extrinsics/Payload.swift rename to Sources/SubstrateClientSwift/Extrinsics/Payload.swift diff --git a/SubstrateClientSwift/Classes/Extrinsics/SignedPayload.swift b/Sources/SubstrateClientSwift/Extrinsics/SignedPayload.swift similarity index 100% rename from SubstrateClientSwift/Classes/Extrinsics/SignedPayload.swift rename to Sources/SubstrateClientSwift/Extrinsics/SignedPayload.swift diff --git a/SubstrateClientSwift/Classes/Extrinsics/UnsignedPayload.swift b/Sources/SubstrateClientSwift/Extrinsics/UnsignedPayload.swift similarity index 100% rename from SubstrateClientSwift/Classes/Extrinsics/UnsignedPayload.swift rename to Sources/SubstrateClientSwift/Extrinsics/UnsignedPayload.swift diff --git a/SubstrateClientSwift/Classes/Hashers/DefaultHashersProvider.swift b/Sources/SubstrateClientSwift/Hashers/DefaultHashersProvider.swift similarity index 100% rename from SubstrateClientSwift/Classes/Hashers/DefaultHashersProvider.swift rename to Sources/SubstrateClientSwift/Hashers/DefaultHashersProvider.swift diff --git a/SubstrateClientSwift/Classes/Hashers/HashersProvider.swift b/Sources/SubstrateClientSwift/Hashers/HashersProvider.swift similarity index 100% rename from SubstrateClientSwift/Classes/Hashers/HashersProvider.swift rename to Sources/SubstrateClientSwift/Hashers/HashersProvider.swift diff --git a/SubstrateClientSwift/Classes/Hashers/StorageHasher.swift b/Sources/SubstrateClientSwift/Hashers/StorageHasher.swift similarity index 100% rename from SubstrateClientSwift/Classes/Hashers/StorageHasher.swift rename to Sources/SubstrateClientSwift/Hashers/StorageHasher.swift diff --git a/SubstrateClientSwift/Classes/Metadata/Lookup/RuntimeLookup.swift b/Sources/SubstrateClientSwift/Metadata/Lookup/RuntimeLookup.swift similarity index 100% rename from SubstrateClientSwift/Classes/Metadata/Lookup/RuntimeLookup.swift rename to Sources/SubstrateClientSwift/Metadata/Lookup/RuntimeLookup.swift diff --git a/SubstrateClientSwift/Classes/Metadata/Lookup/RuntimeLookupItem.swift b/Sources/SubstrateClientSwift/Metadata/Lookup/RuntimeLookupItem.swift similarity index 100% rename from SubstrateClientSwift/Classes/Metadata/Lookup/RuntimeLookupItem.swift rename to Sources/SubstrateClientSwift/Metadata/Lookup/RuntimeLookupItem.swift diff --git a/SubstrateClientSwift/Classes/Metadata/Lookup/RuntimeType.swift b/Sources/SubstrateClientSwift/Metadata/Lookup/RuntimeType.swift similarity index 100% rename from SubstrateClientSwift/Classes/Metadata/Lookup/RuntimeType.swift rename to Sources/SubstrateClientSwift/Metadata/Lookup/RuntimeType.swift diff --git a/SubstrateClientSwift/Classes/Metadata/Lookup/Type/Def/RuntimeTypeDefArray.swift b/Sources/SubstrateClientSwift/Metadata/Lookup/Type/Def/RuntimeTypeDefArray.swift similarity index 100% rename from SubstrateClientSwift/Classes/Metadata/Lookup/Type/Def/RuntimeTypeDefArray.swift rename to Sources/SubstrateClientSwift/Metadata/Lookup/Type/Def/RuntimeTypeDefArray.swift diff --git a/SubstrateClientSwift/Classes/Metadata/Lookup/Type/Def/RuntimeTypeDefBitSequence.swift b/Sources/SubstrateClientSwift/Metadata/Lookup/Type/Def/RuntimeTypeDefBitSequence.swift similarity index 100% rename from SubstrateClientSwift/Classes/Metadata/Lookup/Type/Def/RuntimeTypeDefBitSequence.swift rename to Sources/SubstrateClientSwift/Metadata/Lookup/Type/Def/RuntimeTypeDefBitSequence.swift diff --git a/SubstrateClientSwift/Classes/Metadata/Lookup/Type/Def/RuntimeTypeDefCompact.swift b/Sources/SubstrateClientSwift/Metadata/Lookup/Type/Def/RuntimeTypeDefCompact.swift similarity index 100% rename from SubstrateClientSwift/Classes/Metadata/Lookup/Type/Def/RuntimeTypeDefCompact.swift rename to Sources/SubstrateClientSwift/Metadata/Lookup/Type/Def/RuntimeTypeDefCompact.swift diff --git a/SubstrateClientSwift/Classes/Metadata/Lookup/Type/Def/RuntimeTypeDefComposite.swift b/Sources/SubstrateClientSwift/Metadata/Lookup/Type/Def/RuntimeTypeDefComposite.swift similarity index 100% rename from SubstrateClientSwift/Classes/Metadata/Lookup/Type/Def/RuntimeTypeDefComposite.swift rename to Sources/SubstrateClientSwift/Metadata/Lookup/Type/Def/RuntimeTypeDefComposite.swift diff --git a/SubstrateClientSwift/Classes/Metadata/Lookup/Type/Def/RuntimeTypeDefField.swift b/Sources/SubstrateClientSwift/Metadata/Lookup/Type/Def/RuntimeTypeDefField.swift similarity index 100% rename from SubstrateClientSwift/Classes/Metadata/Lookup/Type/Def/RuntimeTypeDefField.swift rename to Sources/SubstrateClientSwift/Metadata/Lookup/Type/Def/RuntimeTypeDefField.swift diff --git a/SubstrateClientSwift/Classes/Metadata/Lookup/Type/Def/RuntimeTypeDefPrimitive.swift b/Sources/SubstrateClientSwift/Metadata/Lookup/Type/Def/RuntimeTypeDefPrimitive.swift similarity index 100% rename from SubstrateClientSwift/Classes/Metadata/Lookup/Type/Def/RuntimeTypeDefPrimitive.swift rename to Sources/SubstrateClientSwift/Metadata/Lookup/Type/Def/RuntimeTypeDefPrimitive.swift diff --git a/SubstrateClientSwift/Classes/Metadata/Lookup/Type/Def/RuntimeTypeDefSequence.swift b/Sources/SubstrateClientSwift/Metadata/Lookup/Type/Def/RuntimeTypeDefSequence.swift similarity index 100% rename from SubstrateClientSwift/Classes/Metadata/Lookup/Type/Def/RuntimeTypeDefSequence.swift rename to Sources/SubstrateClientSwift/Metadata/Lookup/Type/Def/RuntimeTypeDefSequence.swift diff --git a/SubstrateClientSwift/Classes/Metadata/Lookup/Type/Def/RuntimeTypeDefTuple.swift b/Sources/SubstrateClientSwift/Metadata/Lookup/Type/Def/RuntimeTypeDefTuple.swift similarity index 100% rename from SubstrateClientSwift/Classes/Metadata/Lookup/Type/Def/RuntimeTypeDefTuple.swift rename to Sources/SubstrateClientSwift/Metadata/Lookup/Type/Def/RuntimeTypeDefTuple.swift diff --git a/SubstrateClientSwift/Classes/Metadata/Lookup/Type/Def/RuntimeTypeDefVariant.swift b/Sources/SubstrateClientSwift/Metadata/Lookup/Type/Def/RuntimeTypeDefVariant.swift similarity index 100% rename from SubstrateClientSwift/Classes/Metadata/Lookup/Type/Def/RuntimeTypeDefVariant.swift rename to Sources/SubstrateClientSwift/Metadata/Lookup/Type/Def/RuntimeTypeDefVariant.swift diff --git a/SubstrateClientSwift/Classes/Metadata/Lookup/Type/RuntimeTypeDef.swift b/Sources/SubstrateClientSwift/Metadata/Lookup/Type/RuntimeTypeDef.swift similarity index 100% rename from SubstrateClientSwift/Classes/Metadata/Lookup/Type/RuntimeTypeDef.swift rename to Sources/SubstrateClientSwift/Metadata/Lookup/Type/RuntimeTypeDef.swift diff --git a/SubstrateClientSwift/Classes/Metadata/Lookup/Type/RuntimeTypeParam.swift b/Sources/SubstrateClientSwift/Metadata/Lookup/Type/RuntimeTypeParam.swift similarity index 100% rename from SubstrateClientSwift/Classes/Metadata/Lookup/Type/RuntimeTypeParam.swift rename to Sources/SubstrateClientSwift/Metadata/Lookup/Type/RuntimeTypeParam.swift diff --git a/SubstrateClientSwift/Classes/Metadata/Modules/RuntimeModule.swift b/Sources/SubstrateClientSwift/Metadata/Modules/RuntimeModule.swift similarity index 100% rename from SubstrateClientSwift/Classes/Metadata/Modules/RuntimeModule.swift rename to Sources/SubstrateClientSwift/Metadata/Modules/RuntimeModule.swift diff --git a/SubstrateClientSwift/Classes/Metadata/Modules/RuntimeModuleConstant.swift b/Sources/SubstrateClientSwift/Metadata/Modules/RuntimeModuleConstant.swift similarity index 100% rename from SubstrateClientSwift/Classes/Metadata/Modules/RuntimeModuleConstant.swift rename to Sources/SubstrateClientSwift/Metadata/Modules/RuntimeModuleConstant.swift diff --git a/SubstrateClientSwift/Classes/Metadata/Modules/Storage/Item/RuntimeModuleStorageItem.swift b/Sources/SubstrateClientSwift/Metadata/Modules/Storage/Item/RuntimeModuleStorageItem.swift similarity index 100% rename from SubstrateClientSwift/Classes/Metadata/Modules/Storage/Item/RuntimeModuleStorageItem.swift rename to Sources/SubstrateClientSwift/Metadata/Modules/Storage/Item/RuntimeModuleStorageItem.swift diff --git a/SubstrateClientSwift/Classes/Metadata/Modules/Storage/Item/RuntimeModuleStorageItemModifier.swift b/Sources/SubstrateClientSwift/Metadata/Modules/Storage/Item/RuntimeModuleStorageItemModifier.swift similarity index 100% rename from SubstrateClientSwift/Classes/Metadata/Modules/Storage/Item/RuntimeModuleStorageItemModifier.swift rename to Sources/SubstrateClientSwift/Metadata/Modules/Storage/Item/RuntimeModuleStorageItemModifier.swift diff --git a/SubstrateClientSwift/Classes/Metadata/Modules/Storage/Item/Type/RuntimeModuleStorageItemType.swift b/Sources/SubstrateClientSwift/Metadata/Modules/Storage/Item/Type/RuntimeModuleStorageItemType.swift similarity index 100% rename from SubstrateClientSwift/Classes/Metadata/Modules/Storage/Item/Type/RuntimeModuleStorageItemType.swift rename to Sources/SubstrateClientSwift/Metadata/Modules/Storage/Item/Type/RuntimeModuleStorageItemType.swift diff --git a/SubstrateClientSwift/Classes/Metadata/Modules/Storage/Item/Type/RuntimeModuleStorageItemTypeMap.swift b/Sources/SubstrateClientSwift/Metadata/Modules/Storage/Item/Type/RuntimeModuleStorageItemTypeMap.swift similarity index 100% rename from SubstrateClientSwift/Classes/Metadata/Modules/Storage/Item/Type/RuntimeModuleStorageItemTypeMap.swift rename to Sources/SubstrateClientSwift/Metadata/Modules/Storage/Item/Type/RuntimeModuleStorageItemTypeMap.swift diff --git a/SubstrateClientSwift/Classes/Metadata/Modules/Storage/Item/Type/RuntimeModuleStorageItemTypePlain.swift b/Sources/SubstrateClientSwift/Metadata/Modules/Storage/Item/Type/RuntimeModuleStorageItemTypePlain.swift similarity index 100% rename from SubstrateClientSwift/Classes/Metadata/Modules/Storage/Item/Type/RuntimeModuleStorageItemTypePlain.swift rename to Sources/SubstrateClientSwift/Metadata/Modules/Storage/Item/Type/RuntimeModuleStorageItemTypePlain.swift diff --git a/SubstrateClientSwift/Classes/Metadata/Modules/Storage/RuntimeModuleStorage.swift b/Sources/SubstrateClientSwift/Metadata/Modules/Storage/RuntimeModuleStorage.swift similarity index 100% rename from SubstrateClientSwift/Classes/Metadata/Modules/Storage/RuntimeModuleStorage.swift rename to Sources/SubstrateClientSwift/Metadata/Modules/Storage/RuntimeModuleStorage.swift diff --git a/SubstrateClientSwift/Classes/Metadata/Modules/Storage/RuntimeModuleStorageHasher.swift b/Sources/SubstrateClientSwift/Metadata/Modules/Storage/RuntimeModuleStorageHasher.swift similarity index 100% rename from SubstrateClientSwift/Classes/Metadata/Modules/Storage/RuntimeModuleStorageHasher.swift rename to Sources/SubstrateClientSwift/Metadata/Modules/Storage/RuntimeModuleStorageHasher.swift diff --git a/SubstrateClientSwift/Classes/Metadata/RuntimeExtrinsic.swift b/Sources/SubstrateClientSwift/Metadata/RuntimeExtrinsic.swift similarity index 100% rename from SubstrateClientSwift/Classes/Metadata/RuntimeExtrinsic.swift rename to Sources/SubstrateClientSwift/Metadata/RuntimeExtrinsic.swift diff --git a/SubstrateClientSwift/Classes/Metadata/RuntimeMetadata.swift b/Sources/SubstrateClientSwift/Metadata/RuntimeMetadata.swift similarity index 100% rename from SubstrateClientSwift/Classes/Metadata/RuntimeMetadata.swift rename to Sources/SubstrateClientSwift/Metadata/RuntimeMetadata.swift diff --git a/SubstrateClientSwift/Classes/Modules/Chain/ChainModule.swift b/Sources/SubstrateClientSwift/Modules/Chain/ChainModule.swift similarity index 100% rename from SubstrateClientSwift/Classes/Modules/Chain/ChainModule.swift rename to Sources/SubstrateClientSwift/Modules/Chain/ChainModule.swift diff --git a/SubstrateClientSwift/Classes/Modules/Crowdloan/Calls/AddMemo.swift b/Sources/SubstrateClientSwift/Modules/Crowdloan/Calls/AddMemo.swift similarity index 100% rename from SubstrateClientSwift/Classes/Modules/Crowdloan/Calls/AddMemo.swift rename to Sources/SubstrateClientSwift/Modules/Crowdloan/Calls/AddMemo.swift diff --git a/SubstrateClientSwift/Classes/Modules/DefaultModuleProvider.swift b/Sources/SubstrateClientSwift/Modules/DefaultModuleProvider.swift similarity index 100% rename from SubstrateClientSwift/Classes/Modules/DefaultModuleProvider.swift rename to Sources/SubstrateClientSwift/Modules/DefaultModuleProvider.swift diff --git a/SubstrateClientSwift/Classes/Modules/ModuleProvider.swift b/Sources/SubstrateClientSwift/Modules/ModuleProvider.swift similarity index 100% rename from SubstrateClientSwift/Classes/Modules/ModuleProvider.swift rename to Sources/SubstrateClientSwift/Modules/ModuleProvider.swift diff --git a/SubstrateClientSwift/Classes/Modules/Payment/PaymentModule.swift b/Sources/SubstrateClientSwift/Modules/Payment/PaymentModule.swift similarity index 100% rename from SubstrateClientSwift/Classes/Modules/Payment/PaymentModule.swift rename to Sources/SubstrateClientSwift/Modules/Payment/PaymentModule.swift diff --git a/SubstrateClientSwift/Classes/Modules/Payment/Types/QueryFeeDetails.swift b/Sources/SubstrateClientSwift/Modules/Payment/Types/QueryFeeDetails.swift similarity index 100% rename from SubstrateClientSwift/Classes/Modules/Payment/Types/QueryFeeDetails.swift rename to Sources/SubstrateClientSwift/Modules/Payment/Types/QueryFeeDetails.swift diff --git a/SubstrateClientSwift/Classes/Modules/State/StateModule.swift b/Sources/SubstrateClientSwift/Modules/State/StateModule.swift similarity index 100% rename from SubstrateClientSwift/Classes/Modules/State/StateModule.swift rename to Sources/SubstrateClientSwift/Modules/State/StateModule.swift diff --git a/SubstrateClientSwift/Classes/Modules/System/Constants/RuntimeVersion.swift b/Sources/SubstrateClientSwift/Modules/System/Constants/RuntimeVersion.swift similarity index 100% rename from SubstrateClientSwift/Classes/Modules/System/Constants/RuntimeVersion.swift rename to Sources/SubstrateClientSwift/Modules/System/Constants/RuntimeVersion.swift diff --git a/SubstrateClientSwift/Classes/Modules/System/Storage/Account.swift b/Sources/SubstrateClientSwift/Modules/System/Storage/Account.swift similarity index 100% rename from SubstrateClientSwift/Classes/Modules/System/Storage/Account.swift rename to Sources/SubstrateClientSwift/Modules/System/Storage/Account.swift diff --git a/SubstrateClientSwift/Classes/Modules/System/SystemModule.swift b/Sources/SubstrateClientSwift/Modules/System/SystemModule.swift similarity index 100% rename from SubstrateClientSwift/Classes/Modules/System/SystemModule.swift rename to Sources/SubstrateClientSwift/Modules/System/SystemModule.swift diff --git a/SubstrateClientSwift/Classes/RPC/Nothing.swift b/Sources/SubstrateClientSwift/RPC/Nothing.swift similarity index 100% rename from SubstrateClientSwift/Classes/RPC/Nothing.swift rename to Sources/SubstrateClientSwift/RPC/Nothing.swift diff --git a/SubstrateClientSwift/Classes/RPC/RpcClient.swift b/Sources/SubstrateClientSwift/RPC/RpcClient.swift similarity index 100% rename from SubstrateClientSwift/Classes/RPC/RpcClient.swift rename to Sources/SubstrateClientSwift/RPC/RpcClient.swift diff --git a/SubstrateClientSwift/Classes/RPC/RpcRequest.swift b/Sources/SubstrateClientSwift/RPC/RpcRequest.swift similarity index 100% rename from SubstrateClientSwift/Classes/RPC/RpcRequest.swift rename to Sources/SubstrateClientSwift/RPC/RpcRequest.swift diff --git a/SubstrateClientSwift/Classes/RPC/RpcResponse.swift b/Sources/SubstrateClientSwift/RPC/RpcResponse.swift similarity index 100% rename from SubstrateClientSwift/Classes/RPC/RpcResponse.swift rename to Sources/SubstrateClientSwift/RPC/RpcResponse.swift diff --git a/SubstrateClientSwift/Classes/RPC/RpcResponseError.swift b/Sources/SubstrateClientSwift/RPC/RpcResponseError.swift similarity index 100% rename from SubstrateClientSwift/Classes/RPC/RpcResponseError.swift rename to Sources/SubstrateClientSwift/RPC/RpcResponseError.swift diff --git a/SubstrateClientSwift/Classes/Scale/DynamicAdapter.swift b/Sources/SubstrateClientSwift/Scale/DynamicAdapter.swift similarity index 100% rename from SubstrateClientSwift/Classes/Scale/DynamicAdapter.swift rename to Sources/SubstrateClientSwift/Scale/DynamicAdapter.swift diff --git a/SubstrateClientSwift/Classes/Scale/DynamicAdapterError.swift b/Sources/SubstrateClientSwift/Scale/DynamicAdapterError.swift similarity index 100% rename from SubstrateClientSwift/Classes/Scale/DynamicAdapterError.swift rename to Sources/SubstrateClientSwift/Scale/DynamicAdapterError.swift diff --git a/SubstrateClientSwift/Classes/Scale/DynamicAdapterProvider.swift b/Sources/SubstrateClientSwift/Scale/DynamicAdapterProvider.swift similarity index 100% rename from SubstrateClientSwift/Classes/Scale/DynamicAdapterProvider.swift rename to Sources/SubstrateClientSwift/Scale/DynamicAdapterProvider.swift diff --git a/SubstrateClientSwift/Classes/Scale/DynamicType.swift b/Sources/SubstrateClientSwift/Scale/DynamicType.swift similarity index 100% rename from SubstrateClientSwift/Classes/Scale/DynamicType.swift rename to Sources/SubstrateClientSwift/Scale/DynamicType.swift diff --git a/SubstrateClientSwift/Classes/Scale/DynamicUIntTypes.swift b/Sources/SubstrateClientSwift/Scale/DynamicUIntTypes.swift similarity index 100% rename from SubstrateClientSwift/Classes/Scale/DynamicUIntTypes.swift rename to Sources/SubstrateClientSwift/Scale/DynamicUIntTypes.swift diff --git a/SubstrateClientSwift/Classes/Substrate/JobWithTimeout.swift b/Sources/SubstrateClientSwift/Substrate/JobWithTimeout.swift similarity index 100% rename from SubstrateClientSwift/Classes/Substrate/JobWithTimeout.swift rename to Sources/SubstrateClientSwift/Substrate/JobWithTimeout.swift diff --git a/SubstrateClientSwift/Classes/Substrate/ScaleCodedProvider.swift b/Sources/SubstrateClientSwift/Substrate/ScaleCodedProvider.swift similarity index 100% rename from SubstrateClientSwift/Classes/Substrate/ScaleCodedProvider.swift rename to Sources/SubstrateClientSwift/Substrate/ScaleCodedProvider.swift diff --git a/SubstrateClientSwift/Classes/Substrate/SubstrateClient.swift b/Sources/SubstrateClientSwift/Substrate/SubstrateClient.swift similarity index 100% rename from SubstrateClientSwift/Classes/Substrate/SubstrateClient.swift rename to Sources/SubstrateClientSwift/Substrate/SubstrateClient.swift diff --git a/SubstrateClientSwift/Classes/Substrate/SubstrateClientNamingPolicy.swift b/Sources/SubstrateClientSwift/Substrate/SubstrateClientNamingPolicy.swift similarity index 100% rename from SubstrateClientSwift/Classes/Substrate/SubstrateClientNamingPolicy.swift rename to Sources/SubstrateClientSwift/Substrate/SubstrateClientNamingPolicy.swift diff --git a/SubstrateClientSwift/Classes/Substrate/SubstrateClientSettings.swift b/Sources/SubstrateClientSwift/Substrate/SubstrateClientSettings.swift similarity index 100% rename from SubstrateClientSwift/Classes/Substrate/SubstrateClientSettings.swift rename to Sources/SubstrateClientSwift/Substrate/SubstrateClientSettings.swift diff --git a/SubstrateClientSwift/Classes/Substrate/SubstrateConstantsService.swift b/Sources/SubstrateClientSwift/Substrate/SubstrateConstantsService.swift similarity index 100% rename from SubstrateClientSwift/Classes/Substrate/SubstrateConstantsService.swift rename to Sources/SubstrateClientSwift/Substrate/SubstrateConstantsService.swift diff --git a/SubstrateClientSwift/Classes/Substrate/SubstrateExtrinsicsService.swift b/Sources/SubstrateClientSwift/Substrate/SubstrateExtrinsicsService.swift similarity index 100% rename from SubstrateClientSwift/Classes/Substrate/SubstrateExtrinsicsService.swift rename to Sources/SubstrateClientSwift/Substrate/SubstrateExtrinsicsService.swift diff --git a/SubstrateClientSwift/Classes/Substrate/SubstrateLookupService.swift b/Sources/SubstrateClientSwift/Substrate/SubstrateLookupService.swift similarity index 100% rename from SubstrateClientSwift/Classes/Substrate/SubstrateLookupService.swift rename to Sources/SubstrateClientSwift/Substrate/SubstrateLookupService.swift diff --git a/SubstrateClientSwift/Classes/Substrate/SubstrateStorageService.swift b/Sources/SubstrateClientSwift/Substrate/SubstrateStorageService.swift similarity index 100% rename from SubstrateClientSwift/Classes/Substrate/SubstrateStorageService.swift rename to Sources/SubstrateClientSwift/Substrate/SubstrateStorageService.swift diff --git a/SubstrateClientSwift/Classes/WebSocket/SubstrateWebSocketClient.swift b/Sources/SubstrateClientSwift/WebSocket/SubstrateWebSocketClient.swift similarity index 100% rename from SubstrateClientSwift/Classes/WebSocket/SubstrateWebSocketClient.swift rename to Sources/SubstrateClientSwift/WebSocket/SubstrateWebSocketClient.swift diff --git a/SubstrateClientSwift/Classes/WebSocket/SubstrateWebSocketRequest.swift b/Sources/SubstrateClientSwift/WebSocket/SubstrateWebSocketRequest.swift similarity index 100% rename from SubstrateClientSwift/Classes/WebSocket/SubstrateWebSocketRequest.swift rename to Sources/SubstrateClientSwift/WebSocket/SubstrateWebSocketRequest.swift diff --git a/SubstrateClientSwift/Classes/WebSocket/WebSocketClient.swift b/Sources/SubstrateClientSwift/WebSocket/WebSocketClient.swift similarity index 100% rename from SubstrateClientSwift/Classes/WebSocket/WebSocketClient.swift rename to Sources/SubstrateClientSwift/WebSocket/WebSocketClient.swift diff --git a/SubstrateClientSwift/Classes/WebSocket/WebSocketClientFactory.swift b/Sources/SubstrateClientSwift/WebSocket/WebSocketClientFactory.swift similarity index 100% rename from SubstrateClientSwift/Classes/WebSocket/WebSocketClientFactory.swift rename to Sources/SubstrateClientSwift/WebSocket/WebSocketClientFactory.swift diff --git a/SubstrateClientSwift/Classes/WebSocket/WebSocketClientSettings.swift b/Sources/SubstrateClientSwift/WebSocket/WebSocketClientSettings.swift similarity index 100% rename from SubstrateClientSwift/Classes/WebSocket/WebSocketClientSettings.swift rename to Sources/SubstrateClientSwift/WebSocket/WebSocketClientSettings.swift diff --git a/SubstrateClientSwift.podspec b/SubstrateClientSwift.podspec index c1364f4..22e4c44 100644 --- a/SubstrateClientSwift.podspec +++ b/SubstrateClientSwift.podspec @@ -7,10 +7,11 @@ Pod::Spec.new do |s| s.author = { 'Substrate Laboratory LLC' => 'info@sublab.dev' } s.source = { :git => 'https://github.com/sublabdev/substrate-client-swift.git', :tag => s.version.to_s } s.ios.deployment_target = '13.0' - s.source_files = 'SubstrateClientSwift/Classes/**/*' - s.dependency 'CommonSwift', '~> 1.0.0' - s.dependency 'HashingSwift', '~> 1.0.0' - s.dependency 'EncryptingSwift', '~> 1.0.0' - s.dependency 'ScaleCodecSwift', '~> 1.0.0' - s.dependency 'BigInt', '~> 5.0.0' + s.osx.deployment_target = '10.15' + s.source_files = 'Sources/SubstrateClientSwift/**/*' + s.dependency 'CommonSwift', '1.0.0' + s.dependency 'HashingSwift', '1.0.0' + s.dependency 'EncryptingSwift', '1.0.0' + s.dependency 'ScaleCodecSwift', '1.0.0' + s.dependency 'BigInt', '5.0.0' end diff --git a/SubstrateClientSwift/Assets/.gitkeep b/SubstrateClientSwift/Assets/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/SubstrateClientSwift/Classes/.gitkeep b/SubstrateClientSwift/Classes/.gitkeep deleted file mode 100644 index e69de29..0000000