You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- From v2.0.0 we officially omited Rx library and a lot of dependencies, thus we also adopt swift concurrency to `solana-swift`. [What have been changed?](https://github.com/p2p-org/solana-swift/issues/42)
22
+
- For those who still use `SolanaSDK` class, follow [this link](https://github.com/p2p-org/solana-swift/blob/deprecated/1.3.8/README.md)
23
+
20
24
## Features
21
25
-[x] Supported swift concurrency (from 2.0.0)
22
26
-[x] Key pairs generation
@@ -27,18 +31,15 @@ Solana-blockchain client, written in pure swift.
27
31
-[x] Socket communication
28
32
-[x] OrcaSwapSwift
29
33
-[x] RenVMSwift
30
-
31
-
## Example
32
-
33
-
To run the example project, clone the repo, and run `pod install` from the Example directory first.
* From v2.0.0 we officially omited Rx library and a lot of dependencies, thus we also adopt swift concurrency to `solana-swift`. [What have been changed?](https://github.com/p2p-org/solana-swift/issues/42)
66
-
* For those who still use `SolanaSDK` class, follow [this link](https://github.com/p2p-org/solana-swift/blob/deprecated/1.3.8/README.md)
let account =tryawaitAccount(network: .mainnetBeta)
122
+
let account =tryawaitKeyPair(network: .mainnetBeta)
125
123
// optional
126
124
accountStorage.save(account)
127
125
```
128
126
129
127
### Restore an account from a seed phrase (keypair)
130
128
```swift
131
-
let account =tryawaitAccount(phrases: ["miracle", "hundred", ...], network: .mainnetBeta, derivablePath: ...)
129
+
let account =tryawaitKeyPair(phrases: ["miracle", "hundred", ...], network: .mainnetBeta, derivablePath: ...)
132
130
// optional
133
131
accountStorage.save(account)
134
132
```
@@ -246,6 +244,7 @@ List of default programs and pre-defined method that live on Solana network:
246
244
3. AssociatedTokenProgram. See [Documentation](https://p2p-org.github.io/solana-swift/documentation/solanaswift/associatedtokenprogram)
247
245
4. OwnerValidationProgram. See [Documentation](https://p2p-org.github.io/solana-swift/documentation/solanaswift/ownervalidationprogram)
248
246
5. TokenSwapProgram. See [Documentation](https://p2p-org.github.io/solana-swift/documentation/solanaswift/tokenswapprogram)
247
+
6. Token2022Program. See [Documentation](https://p2p-org.github.io/solana-swift/documentation/solanaswift/token2022program)
249
248
250
249
### Solana Tokens Repository
251
250
Tokens repository usefull when you need to get a list of tokens. See [Documentation](https://p2p-org.github.io/solana-swift/documentation/solanaswift/tokensrepository)
@@ -257,15 +256,6 @@ let list = try await tokenRepository.getTokensList()
257
256
```
258
257
TokenRepository be default uses cache not to make extra calls, it can disabled manually `.getTokensList(useCache: false)`
259
258
260
-
## How to use OrcaSwap
261
-
OrcaSwap has been moved to new library [OrcaSwapSwift](https://github.com/p2p-org/OrcaSwapSwift)
262
-
263
-
## How to use RenVM
264
-
RenVM has been moved to new library [RenVMSwift](https://github.com/p2p-org/RenVMSwift)
265
-
266
-
## How to use Serum swap (DEX) (NOT STABLE)
267
-
SerumSwap has been moved to new library [SerumSwapSwift](https://github.com/p2p-org/SerumSwapSwift)
268
-
269
259
## Contribution
270
260
- Welcome to contribute, feel free to change and open a PR.
0 commit comments