Skip to content

Commit

Permalink
update to latest dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
metalurgical committed Oct 24, 2024
1 parent 4d01a8d commit 13befed
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 25 deletions.
16 changes: 8 additions & 8 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,26 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/attaswift/BigInt.git",
"state" : {
"revision" : "793a7fac0bfc318e85994bf6900652e827aef33e",
"version" : "5.4.1"
"revision" : "0ed110f7555c34ff468e72e1686e59721f2b0da6",
"version" : "5.3.0"
}
},
{
"identity" : "curvelib.swift",
"kind" : "remoteSourceControl",
"location" : "https://github.com/tkey/curvelib.swift",
"state" : {
"revision" : "9f88bd5e56d1df443a908f7a7e81ae4f4d9170ea",
"version" : "1.0.1"
"revision" : "432bf1abe7ff505fc2ac9fcf697341ff5b2dc6d0",
"version" : "2.0.0"
}
},
{
"identity" : "fetch-node-details-swift",
"kind" : "remoteSourceControl",
"location" : "https://github.com/torusresearch/fetch-node-details-swift",
"state" : {
"branch" : "encapsulate_torusnetwork",
"revision" : "2fcd108ea89a48f092a955017977a299129d20c7"
"revision" : "52fb5efaa94e0fe3775913ab00964bcb51601c2a",
"version" : "8.0.0"
}
},
{
Expand All @@ -41,8 +41,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-crypto.git",
"state" : {
"revision" : "ffca28be3c9c6a86a579949d23f68818a4b9b5d8",
"version" : "3.8.0"
"revision" : "f0525da24dc3c6cbb2b6b338b65042bc91cbc4bb",
"version" : "3.3.0"
}
}
],
Expand Down
6 changes: 3 additions & 3 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
import PackageDescription
let package = Package(
name: "TorusUtils",
platforms: [.iOS(.v13), .macOS(.v10_15)],
platforms: [.iOS(.v14), .macOS(.v10_15)],
products: [
.library(
name: "TorusUtils",
targets: ["TorusUtils"])
],
dependencies: [
.package(url: "https://github.com/tkey/curvelib.swift", from: "1.0.1"),
.package(url: "https://github.com/torusresearch/fetch-node-details-swift", branch: "encapsulate_torusnetwork"), // TODO: Update to 7.0.0
.package(url: "https://github.com/tkey/curvelib.swift", from: "2.0.0"),
.package(url: "https://github.com/torusresearch/fetch-node-details-swift", from: "8.0.0"),
// NB: jwt-kit may only be a dependency in tests or it will break cocoapod support
.package(url: "https://github.com/vapor/jwt-kit.git", from: "4.0.0"),
],
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ You can install the TorusUtils using Swift Package Manager:
...
dependencies: [
...
.package(url: "https://github.com/torusresearch/torus-utils-swift", from: "9.0.0")
.package(url: "https://github.com/torusresearch/torus-utils-swift", from: "10.0.0")
],
targets: [
.target( name: "<INSERT_TARGET_NAME>",
Expand All @@ -30,15 +30,15 @@ Or CocoaPods:

```
...
pod 'Torus-utils', '~> 9.0.0'
pod 'Torus-utils', '~> 10.0.0'
...
```

## Getting Started
Initialize the `TorusUtils` class by passing `TorusOptions` as params. Params includes `TorusNetwork`, `enableOneKey`, and your `clientId`. `enableOneKey` if true, adds the nonce value to the key, to make it compatible with v2 users. The package supports both legacy and sapphire networks.

```swift
let torusUtils = TorusUtils(params: TorusOptions(clientId: "YOUR_CLIENT_ID", network: .sapphire(.SAPPHIRE_MAINNET), enableOneKey: true))
let torusUtils = TorusUtils(params: TorusOptions(clientId: "YOUR_CLIENT_ID", network: .SAPPHIRE_MAINNET, enableOneKey: true))
```


Expand Down
4 changes: 2 additions & 2 deletions Torus-utils.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ Pod::Spec.new do |spec|
spec.module_name = "TorusUtils"
spec.source = { :git => "https://github.com/torusresearch/torus-utils-swift.git", :tag => spec.version }
spec.source_files = "Sources/TorusUtils/*.{swift,json}","Sources/TorusUtils/**/*.{swift,json}"
spec.dependency 'Torus-fetchNodeDetails', '~> 7.0.0'
spec.dependency 'curvelib.swift', '~> 1.0.1'
spec.dependency 'Torus-fetchNodeDetails', '~> 8.0.0'
spec.dependency 'curvelib.swift', '~> 2.0.0'
end
18 changes: 9 additions & 9 deletions cocoapods/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
PODS:
- BigInt (5.2.0)
- curvelib.swift (1.0.1)
- Torus-fetchNodeDetails (6.0.3):
- curvelib.swift (2.0.0)
- Torus-fetchNodeDetails (8.0.0):
- BigInt (~> 5.2.0)
- Torus-utils (9.0.0):
- curvelib.swift (~> 1.0.1)
- Torus-fetchNodeDetails (~> 6.0.3)
- Torus-utils (10.0.0):
- curvelib.swift (~> 2.0.0)
- Torus-fetchNodeDetails (~> 8.0.0)

DEPENDENCIES:
- Torus-utils (from `../`)
Expand All @@ -22,10 +22,10 @@ EXTERNAL SOURCES:

SPEC CHECKSUMS:
BigInt: f668a80089607f521586bbe29513d708491ef2f7
curvelib.swift: d0746ae82bee34016c06da3567a97e493b3c979f
Torus-fetchNodeDetails: 6c349f47cbca36a4b3f276fe26d03c1b39b20949
Torus-utils: 0f993fffd66a66a0423092c9ddea2cbff4d298df
curvelib.swift: b9223e5cac801effed8a5fe8968e952b3fe427a5
Torus-fetchNodeDetails: 2a5fbb222ec28af4128d64e4c2d520c7db456b78
Torus-utils: 4a1db3d9c1aa221df312ffa7ec154e7e4719850a

PODFILE CHECKSUM: 2d35466879f2d32f53c6ccbca958796c381f0e62

COCOAPODS: 1.13.0
COCOAPODS: 1.15.2

0 comments on commit 13befed

Please sign in to comment.