Skip to content

Commit f918107

Browse files
authored
Update README.md
1 parent 010a3e3 commit f918107

File tree

1 file changed

+9
-19
lines changed

1 file changed

+9
-19
lines changed

README.md

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ Solana-blockchain client, written in pure swift.
1717
...
1818
[See more](https://github.com/p2p-org/solana-swift/blob/main/CHANGELOG.md)
1919

20+
### v2.0
21+
- 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+
2024
## Features
2125
- [x] Supported swift concurrency (from 2.0.0)
2226
- [x] Key pairs generation
@@ -27,18 +31,15 @@ Solana-blockchain client, written in pure swift.
2731
- [x] Socket communication
2832
- [x] OrcaSwapSwift
2933
- [x] RenVMSwift
30-
31-
## Example
32-
33-
To run the example project, clone the repo, and run `pod install` from the Example directory first.
34-
Demo wallet: [p2p-wallet](https://github.com/p2p-org/p2p-wallet-ios)
34+
- [x] Token2022
3535

3636
## Requirements
3737
- iOS 13 or later
3838

3939
## Dependencies
4040
- TweetNacl
4141
- secp256k1.swift
42+
- Task_retrying
4243

4344
## Installation
4445

@@ -61,9 +62,6 @@ dependencies: [
6162
```
6263

6364
## How to use
64-
### Version 2.0 update anouncement
65-
* 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)
6765

6866
### Import
6967
```swift
@@ -121,14 +119,14 @@ struct InMemoryAccountStorage: SolanaAccountStorage {
121119

122120
### Create an account (keypair)
123121
```swift
124-
let account = try await Account(network: .mainnetBeta)
122+
let account = try await KeyPair(network: .mainnetBeta)
125123
// optional
126124
accountStorage.save(account)
127125
```
128126

129127
### Restore an account from a seed phrase (keypair)
130128
```swift
131-
let account = try await Account(phrases: ["miracle", "hundred", ...], network: .mainnetBeta, derivablePath: ...)
129+
let account = try await KeyPair(phrases: ["miracle", "hundred", ...], network: .mainnetBeta, derivablePath: ...)
132130
// optional
133131
accountStorage.save(account)
134132
```
@@ -246,6 +244,7 @@ List of default programs and pre-defined method that live on Solana network:
246244
3. AssociatedTokenProgram. See [Documentation](https://p2p-org.github.io/solana-swift/documentation/solanaswift/associatedtokenprogram)
247245
4. OwnerValidationProgram. See [Documentation](https://p2p-org.github.io/solana-swift/documentation/solanaswift/ownervalidationprogram)
248246
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)
249248

250249
### Solana Tokens Repository
251250
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()
257256
```
258257
TokenRepository be default uses cache not to make extra calls, it can disabled manually `.getTokensList(useCache: false)`
259258

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-
269259
## Contribution
270260
- Welcome to contribute, feel free to change and open a PR.
271261

0 commit comments

Comments
 (0)