Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

7.4.x Swaps on Asset Hub #900

Merged
merged 274 commits into from
Nov 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
274 commits
Select commit Hold shift + click to select a range
b3b57fe
Swaps: Select token to pay (#854)
lynx56 Oct 6, 2023
e705942
add builder
lynx56 Oct 6, 2023
b2083c1
Merge branch 'base/swaps' into feature/swaps-setup-details
lynx56 Oct 6, 2023
a116817
add view model factory
lynx56 Oct 6, 2023
5c412dd
add fee
lynx56 Oct 6, 2023
8afc956
fixes
lynx56 Oct 6, 2023
29bb699
PR fixes
lynx56 Oct 9, 2023
2a9a3c7
add shimmering, fix collapse animation
lynx56 Oct 9, 2023
9a4c439
cleanup
lynx56 Oct 9, 2023
f87d048
PR fixes
lynx56 Oct 10, 2023
331c0f6
fix animation, accessory view, button state
lynx56 Oct 11, 2023
a4b9b45
check fee identifier before calculation
lynx56 Oct 11, 2023
903e100
add control opacity, change swap button size, use ViewModelFactory fr…
lynx56 Oct 11, 2023
680a0d4
max button, info sheets
lynx56 Oct 11, 2023
2e02f16
fixes
lynx56 Oct 11, 2023
b37f025
add separator
lynx56 Oct 12, 2023
4eb1e83
include fee to input when max button was selected
lynx56 Oct 13, 2023
e233700
init
lynx56 Oct 14, 2023
7161aa8
fix direction
ERussel Oct 16, 2023
6acd426
refactor swap logic
ERussel Oct 16, 2023
2e6ca21
Merge pull request #857 from novasamatech/feature/swaps-setup-details
ERussel Oct 16, 2023
253787e
fix conflicts
ERussel Oct 16, 2023
12a0fdd
fix swap asset spacing
ERussel Oct 16, 2023
02346d7
fix layout
lynx56 Oct 17, 2023
a48e88c
Merge branch 'base/swaps' into feature/swaps-setup-slippage
lynx56 Oct 17, 2023
119fdc5
build fix
lynx56 Oct 17, 2023
889c92e
remove unused code
lynx56 Oct 17, 2023
9414a53
clean up
lynx56 Oct 17, 2023
ae7aa3e
add fee asset
lynx56 Oct 18, 2023
2fddff9
bugfixes
lynx56 Oct 18, 2023
3a3279a
settings state
lynx56 Oct 18, 2023
4a65218
add error
lynx56 Oct 18, 2023
587c6b5
bugfixes
lynx56 Oct 18, 2023
4017c9b
add warning
lynx56 Oct 18, 2023
922c957
validator protocol
lynx56 Oct 19, 2023
b2235c8
Merge branch 'feature/max-button' into feature/swaps-setup-validations
lynx56 Oct 19, 2023
2298d9e
add validations
lynx56 Oct 20, 2023
eb3f532
PR fixes
lynx56 Oct 20, 2023
916e032
handle price error
lynx56 Oct 20, 2023
a0b3e7a
PR fixes
lynx56 Oct 22, 2023
7a75dee
PR fixes
lynx56 Oct 22, 2023
756e1c0
Merge pull request #858 from novasamatech/feature/max-button
ERussel Oct 23, 2023
d07864f
fix conflicts
ERussel Oct 23, 2023
dc3e071
bugfixes
lynx56 Oct 23, 2023
d627f54
Merge branch 'base/swaps' into feature/swaps-setup-slippage
lynx56 Oct 23, 2023
2b16816
add info
lynx56 Oct 23, 2023
71fff9d
PR fixes
lynx56 Oct 23, 2023
4bf140d
Merge branch 'base/swaps' into feature/swaps-setup-validations
lynx56 Oct 23, 2023
b6c4921
fix slippage conversion
ERussel Oct 23, 2023
0739719
Merge pull request #859 from novasamatech/feature/swaps-setup-slippage
ERussel Oct 23, 2023
05c465c
init
lynx56 Oct 24, 2023
435c596
Merge branch 'base/swaps' into feature/swaps-setup-validations
lynx56 Oct 24, 2023
833c7d0
fixes after merge
lynx56 Oct 24, 2023
5f23f2a
Merge branch 'base/swaps' into feature/swaps-confirm
lynx56 Oct 24, 2023
fadef3d
add cells
lynx56 Oct 24, 2023
2e927de
fix russian localization
lynx56 Oct 24, 2023
5228445
add rows
lynx56 Oct 24, 2023
86146cb
buildfix
lynx56 Oct 24, 2023
c740243
Merge pull request #861 from novasamatech/feature/swaps-setup-validat…
ERussel Oct 24, 2023
fdfd2b2
base interactor
lynx56 Oct 25, 2023
60c17d7
Merge branch 'base/swaps' into feature/swaps-confirm
lynx56 Oct 25, 2023
7ef97ff
remove tests
lynx56 Oct 25, 2023
e1e5cda
fixes
lynx56 Oct 25, 2023
7711f0a
bugfixes
lynx56 Oct 25, 2023
a0f9894
cleanup
lynx56 Oct 25, 2023
4ab8908
support custom extensions in the extrinsic service
ERussel Oct 25, 2023
5dd75e3
connect logic to ui
lynx56 Oct 25, 2023
af9e642
fix UI
lynx56 Oct 26, 2023
4e8a38e
renaming, cleanup
lynx56 Oct 26, 2023
c8f88c9
Merge pull request #864 from novasamatech/fix/swaps-slippage
ERussel Oct 26, 2023
d851e34
Merge pull request #863 from novasamatech/feature/swaps-confirm-base
ERussel Oct 26, 2023
bf2c05e
bump version to v16
ERussel Oct 26, 2023
8f4087d
fix slippage availability button
ERussel Oct 26, 2023
ab6ac72
fix default slippage
ERussel Oct 26, 2023
cf950e0
Merge pull request #868 from novasamatech/fix/bumpv16
ERussel Oct 26, 2023
707f91e
add asset hub fee service
ERussel Oct 26, 2023
ce9dc57
refactoring
lynx56 Oct 27, 2023
c8f4e21
add warning
lynx56 Oct 27, 2023
7ddb45d
Merge branch 'base/swaps' into feature/swaps-confirm
lynx56 Oct 27, 2023
b4630d8
fixes after merging
lynx56 Oct 27, 2023
4fe3974
fix icon
lynx56 Oct 27, 2023
a73d39e
add alert for rate change
lynx56 Oct 27, 2023
fe816d2
bugfixes
lynx56 Oct 27, 2023
47c6478
cleanup
lynx56 Oct 27, 2023
7f9f68a
refactor swap screen
ERussel Oct 27, 2023
78e7db3
bugfix
lynx56 Oct 27, 2023
1abb1ae
remove logs
ERussel Oct 27, 2023
8bcb30c
init
lynx56 Oct 27, 2023
081c8a1
add space
lynx56 Oct 27, 2023
1d65de5
Merge pull request #870 from novasamatech/feature/sufficient-token-fee
ERussel Oct 30, 2023
98d510f
add bottomsheet
lynx56 Oct 30, 2023
1e37d5c
Merge branch 'base/swaps' into feature/changing-fee-asset-ui
lynx56 Oct 30, 2023
ac661c5
add feeChainAssetId to identifier
lynx56 Oct 30, 2023
27c24ae
clean up
lynx56 Oct 30, 2023
ca4586b
fix inputs
lynx56 Oct 31, 2023
3cd5592
fix fee validation
lynx56 Oct 31, 2023
b7cc37f
fix conflicts
ERussel Oct 31, 2023
4ee9812
fix validation
ERussel Oct 31, 2023
5f9408e
Merge pull request #869 from novasamatech/feature/swaps-confirm
ERussel Oct 31, 2023
1e035fa
Merge pull request #871 from novasamatech/feature/swaps-price-difference
ERussel Oct 31, 2023
64ccefb
add focus, fix amounts
lynx56 Oct 31, 2023
0e84fe3
Merge branch 'base/swaps' into fix/swap-flip-assets
lynx56 Oct 31, 2023
0ba5eb8
fix background color for segmented control
lynx56 Oct 31, 2023
f8d5f46
Merge branch 'base/swaps' into feature/changing-fee-asset-ui
lynx56 Oct 31, 2023
dc56a5f
fixes after merge
lynx56 Oct 31, 2023
ee44d71
bugfix focus for empty fields
lynx56 Oct 31, 2023
2d78e7f
clean up
lynx56 Oct 31, 2023
ab76bec
improve swap open navigation
ERussel Oct 31, 2023
ff9feed
fix cells
lynx56 Oct 31, 2023
79ddc96
add button
lynx56 Oct 31, 2023
a3a3af5
check pairs availability for operations
ERussel Nov 1, 2023
a6e90db
load all available pairs
ERussel Nov 1, 2023
474c5cb
init
lynx56 Nov 1, 2023
cfe7231
get rid of hadrcoded network in setup
ERussel Nov 1, 2023
03b8d35
Merge pull request #874 from novasamatech/feature/edit-fee-asset-rest…
ERussel Nov 1, 2023
06455ee
Merge pull request #872 from novasamatech/feature/changing-fee-asset-ui
ERussel Nov 1, 2023
77d78dc
fix merge conflicts
ERussel Nov 1, 2023
df1568e
fix can pay fee asset
ERussel Nov 1, 2023
75a507c
add operations
lynx56 Nov 2, 2023
bcd0146
Merge branch 'base/swaps' into fix/swap-flip-assets
lynx56 Nov 2, 2023
f57bae8
fix typos
ERussel Nov 2, 2023
ac9ce9f
Merge pull request #873 from novasamatech/fix/swap-flip-assets
ERussel Nov 2, 2023
66b5822
refactor flip logic
ERussel Nov 2, 2023
a34680f
fix fee calculation on confirm
ERussel Nov 2, 2023
366d5a5
pay fee in custom token
ERussel Nov 2, 2023
278bfb4
add xcm
lynx56 Nov 2, 2023
2249c8e
fix swap logic
ERussel Nov 2, 2023
823928e
fix colors
lynx56 Nov 2, 2023
54c3423
Merge branch 'base/swaps' into feature/deposit-insufficient-token
lynx56 Nov 2, 2023
64563a1
fixes after merging
lynx56 Nov 2, 2023
3156b4f
bugfix after merging
lynx56 Nov 2, 2023
7ea87b1
Merge pull request #876 from novasamatech/feature/extrinsic-via-custo…
ERussel Nov 2, 2023
4a2e512
Merge pull request #875 from novasamatech/feature/navigation
ERussel Nov 2, 2023
8c52adc
fix conflicts
ERussel Nov 2, 2023
9e1c4ff
fix merge conflicts
ERussel Nov 2, 2023
304867b
Merge pull request #877 from novasamatech/feature/deposit-insufficien…
ERussel Nov 2, 2023
86ebe6c
add view
lynx56 Nov 2, 2023
4c9cd62
add validation logic
ERussel Nov 4, 2023
05916b3
add can receive validations
ERussel Nov 5, 2023
744506f
swap max logic and base presenter
ERussel Nov 6, 2023
816c489
subscribe to block number and account info
ERussel Nov 6, 2023
48c3369
add quote validations
ERussel Nov 6, 2023
12454c8
add inline style for erros
ERussel Nov 7, 2023
85fc137
add fee notification
ERussel Nov 7, 2023
be98d9f
add issues view model factory
ERussel Nov 7, 2023
600ee59
refactor slippage
ERussel Nov 7, 2023
239a561
fix slipage logic
ERussel Nov 7, 2023
b6c009a
add logic to confirm screen
ERussel Nov 7, 2023
02b6b58
fix collapsing for details view
ERussel Nov 8, 2023
f489537
improve button state
ERussel Nov 8, 2023
237f6ca
refactor validations
ERussel Nov 8, 2023
b7ac5ca
fix account info set
ERussel Nov 8, 2023
7700684
fix updating data after operation
ERussel Nov 8, 2023
8f6944b
fix swaps
ERussel Nov 8, 2023
08289dc
swap details
lynx56 Nov 8, 2023
ec0668a
fix icons
lynx56 Nov 8, 2023
7d848a7
add notification to confirm screen
ERussel Nov 9, 2023
2bf20a7
fix tests
ERussel Nov 9, 2023
89a0dad
fix transaction history amount
lynx56 Nov 9, 2023
ba7b9f5
Merge branch 'base/swaps' into feature/history
lynx56 Nov 9, 2023
d9fe10f
add hasSwaps check to filter
lynx56 Nov 9, 2023
42fceab
fix tests
lynx56 Nov 9, 2023
9305954
Merge pull request #878 from novasamatech/feature/improve-validations
ERussel Nov 9, 2023
376a524
fix conflicts
ERussel Nov 9, 2023
31993d2
fix conflicts
ERussel Nov 9, 2023
f4d6711
fix fee in custom token
ERussel Nov 9, 2023
7bab3f1
fix fee
ERussel Nov 9, 2023
bff4ef7
fix fee threshold
ERussel Nov 9, 2023
9e1c3cf
fixes
lynx56 Nov 9, 2023
16ee01f
Merge branch 'base/swaps' into fix/swaps-ui-bugs
lynx56 Nov 9, 2023
ea19fcd
confirm fixes
lynx56 Nov 9, 2023
b8a316e
fix toolbar, price difference
lynx56 Nov 10, 2023
c2092f4
remove toolbar style
lynx56 Nov 10, 2023
27d8dc3
refactor
ERussel Nov 10, 2023
5be297b
Merge pull request #880 from novasamatech/fix/max-non-native-swap
ERussel Nov 10, 2023
3a62b80
fix fee cell tap area
lynx56 Nov 10, 2023
3c51893
Merge branch 'base/swaps' into fix/swaps-ui-bugs
ERussel Nov 10, 2023
592b2de
fix price difference
ERussel Nov 10, 2023
3769242
Merge pull request #881 from novasamatech/fix/swaps-ui-bugs
ERussel Nov 10, 2023
a222994
Merge branch 'base/swaps' into feature/crosschain-for-insuff-dep
ERussel Nov 10, 2023
da4f6ce
add modules
ERussel Nov 10, 2023
820f8a9
PR fixes
lynx56 Nov 10, 2023
b0290b7
fix call coding path
lynx56 Nov 10, 2023
c0b922b
repeat operation
lynx56 Nov 10, 2023
f0bcfb2
refactor get token flow
ERussel Nov 12, 2023
8bea759
add option to crosschain tokens from get tokens menu
ERussel Nov 12, 2023
56248f3
add network selection bottomsheet
ERussel Nov 13, 2023
51132c2
fix tests
ERussel Nov 13, 2023
237ec93
insert recepient address by default
ERussel Nov 13, 2023
f0c6ccb
fix selection
ERussel Nov 13, 2023
781138e
Merge pull request #883 from novasamatech/feature/crosschain-for-insu…
ERussel Nov 13, 2023
7854dda
navigation
lynx56 Nov 13, 2023
6effe21
fixes
lynx56 Nov 13, 2023
3128aca
fix swaps parsing
ERussel Nov 13, 2023
2131e15
fix local query for swaps
ERussel Nov 14, 2023
68f5d3c
fix details view
ERussel Nov 14, 2023
c8b2b32
Merge pull request #879 from novasamatech/feature/history
ERussel Nov 14, 2023
ff8146e
missing change
lynx56 Nov 14, 2023
547d9fb
Merge branch 'base/swaps' into feature/repeat-operation-from-history
lynx56 Nov 14, 2023
729ea40
PR fixes
lynx56 Nov 14, 2023
704dc8a
PR fix
lynx56 Nov 14, 2023
8aae70f
fix localization and navigation
ERussel Nov 14, 2023
9049f6d
remove unused code
ERussel Nov 14, 2023
9b1f41f
Merge pull request #882 from novasamatech/feature/repeat-operation-fr…
ERussel Nov 14, 2023
68588fb
check swaps
lynx56 Nov 14, 2023
8b849ab
Merge branch 'base/swaps' into fix/swaps-improve-check-swaps
lynx56 Nov 14, 2023
9318815
fix conflicts
ERussel Nov 14, 2023
834d3ff
fix details display
ERussel Nov 14, 2023
4b5830e
remove unused code
ERussel Nov 14, 2023
6429f63
fix icons
ERussel Nov 14, 2023
a12517d
init
lynx56 Nov 14, 2023
0fa86f0
Merge pull request #884 from novasamatech/fix/hide-details-swaps-low-…
ERussel Nov 14, 2023
91f8878
fix error frame
lynx56 Nov 15, 2023
029e2ee
fix price difference
lynx56 Nov 15, 2023
b8f869a
fix sorting
lynx56 Nov 15, 2023
8bad469
update info icon
lynx56 Nov 16, 2023
72505a3
pr fix
lynx56 Nov 16, 2023
7728210
pr fix
lynx56 Nov 16, 2023
8b71af7
add wiki
lynx56 Nov 16, 2023
d2f702a
enable scroll for dapp networks
lynx56 Nov 16, 2023
6c0147f
fix selection
lynx56 Nov 16, 2023
348b7b6
add parsing swap extrinsics
ERussel Nov 17, 2023
e9963ad
Merge pull request #885 from novasamatech/fix/swaps-improve-check-swaps
ERussel Nov 17, 2023
b32ce94
Merge pull request #889 from novasamatech/base/swaps
ERussel Nov 17, 2023
fc9ee26
complete subscription data parsing
ERussel Nov 17, 2023
139d76e
persist swap after transaction
ERussel Nov 18, 2023
5d688d4
fix fee parsing
ERussel Nov 18, 2023
b1195dc
refactoring
ERussel Nov 19, 2023
b908fdc
take into account ed
ERussel Nov 20, 2023
93d5aaf
Merge pull request #886 from novasamatech/fix/swaps-auto-switch-fee-a…
ERussel Nov 20, 2023
f400f1b
Merge branch 'develop' into fix/swaps-leftovers
ERussel Nov 20, 2023
26ae089
fix fee calculation on flip
ERussel Nov 20, 2023
0725c12
fix review comments
ERussel Nov 20, 2023
ea92f71
Merge pull request #890 from novasamatech/feature/realtime-history-up…
ERussel Nov 20, 2023
dbe67a9
Merge branch 'develop' into fix/swaps-leftovers
ERussel Nov 20, 2023
c0f1d2a
pr fixes
lynx56 Nov 20, 2023
2d2e247
Merge pull request #887 from novasamatech/fix/swaps-leftovers
ERussel Nov 20, 2023
3f2c6e0
prioritise json for staking max electing voters
ERussel Nov 20, 2023
1f500df
Merge pull request #891 from novasamatech/fix/staking-max-elections
ERussel Nov 21, 2023
54a2ba7
fix get tokens receiver
ERussel Nov 21, 2023
8d0edec
fix approx sign
ERussel Nov 21, 2023
8eab304
replace icons in tx history and details
ERussel Nov 21, 2023
48c27f5
fix translation
ERussel Nov 21, 2023
aa558d6
Merge pull request #892 from novasamatech/fix/swap-fixes
ERussel Nov 21, 2023
2ac10c7
improve referendum call parsing
ERussel Nov 21, 2023
fbae0b8
fix disabled state on buttons
ERussel Nov 22, 2023
afe6d3c
fix sorting for assets
ERussel Nov 22, 2023
e82c8c8
Merge pull request #893 from novasamatech/fix/support-treasury-batch
ERussel Nov 22, 2023
1f6827a
sync localization
ERussel Nov 22, 2023
eb3896e
Merge pull request #896 from novasamatech/fix/swaps-polishing
ERussel Nov 22, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ abstract_target 'novawalletAll' do
pod 'SwiftLint'
pod 'R.swift', :inhibit_warnings => true
pod 'SoraKeystore', '~> 1.0.0'
pod 'SoraUI', :git => 'https://github.com/ERussel/UIkit-iOS.git', :tag => '1.11.1'
pod 'SoraUI', :git => 'https://github.com/ERussel/UIkit-iOS.git', :tag => '1.12.0'
pod 'RobinHood', '~> 2.6.0'
pod 'SoraFoundation', :git => 'https://github.com/ERussel/Foundation-iOS.git', :tag => '1.1.0'
pod 'SwiftyBeaver'
Expand Down
60 changes: 30 additions & 30 deletions Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -60,38 +60,38 @@ PODS:
- SoraFoundation/NotificationHandlers
- SoraFoundation/ViewModel (1.1.0)
- SoraKeystore (1.0.0)
- SoraUI (1.11.1):
- SoraUI/AdaptiveDesign (= 1.11.1)
- SoraUI/Animator (= 1.11.1)
- SoraUI/Camera (= 1.11.1)
- SoraUI/Controls (= 1.11.1)
- SoraUI/DetailsView (= 1.11.1)
- SoraUI/EmptyState (= 1.11.1)
- SoraUI/Helpers (= 1.11.1)
- SoraUI/LoadingView (= 1.11.1)
- SoraUI/ModalPresentation (= 1.11.1)
- SoraUI/PageLoader (= 1.11.1)
- SoraUI/PinView (= 1.11.1)
- SoraUI/Skrull (= 1.11.1)
- SoraUI/AdaptiveDesign (1.11.1)
- SoraUI/Animator (1.11.1)
- SoraUI/Camera (1.11.1)
- SoraUI/Controls (1.11.1):
- SoraUI (1.12.0):
- SoraUI/AdaptiveDesign (= 1.12.0)
- SoraUI/Animator (= 1.12.0)
- SoraUI/Camera (= 1.12.0)
- SoraUI/Controls (= 1.12.0)
- SoraUI/DetailsView (= 1.12.0)
- SoraUI/EmptyState (= 1.12.0)
- SoraUI/Helpers (= 1.12.0)
- SoraUI/LoadingView (= 1.12.0)
- SoraUI/ModalPresentation (= 1.12.0)
- SoraUI/PageLoader (= 1.12.0)
- SoraUI/PinView (= 1.12.0)
- SoraUI/Skrull (= 1.12.0)
- SoraUI/AdaptiveDesign (1.12.0)
- SoraUI/Animator (1.12.0)
- SoraUI/Camera (1.12.0)
- SoraUI/Controls (1.12.0):
- SoraUI/Animator
- SoraUI/DetailsView (1.11.1):
- SoraUI/DetailsView (1.12.0):
- SoraUI/Controls
- SoraUI/EmptyState (1.11.1):
- SoraUI/EmptyState (1.12.0):
- SoraUI/Animator
- SoraUI/Helpers (1.11.1)
- SoraUI/LoadingView (1.11.1):
- SoraUI/Helpers (1.12.0)
- SoraUI/LoadingView (1.12.0):
- SoraUI/Controls
- SoraUI/ModalPresentation (1.11.1):
- SoraUI/ModalPresentation (1.12.0):
- SoraUI/Animator
- SoraUI/Controls
- SoraUI/PageLoader (1.11.1)
- SoraUI/PinView (1.11.1):
- SoraUI/PageLoader (1.12.0)
- SoraUI/PinView (1.12.0):
- SoraUI/Controls
- SoraUI/Skrull (1.11.1)
- SoraUI/Skrull (1.12.0)
- Sourcery (1.4.1)
- Starscream (4.0.8)
- SubstrateSdk (1.14.0):
Expand Down Expand Up @@ -159,7 +159,7 @@ DEPENDENCIES:
- SnapKit (~> 5.0.0)
- SoraFoundation (from `https://github.com/ERussel/Foundation-iOS.git`, tag `1.1.0`)
- SoraKeystore (~> 1.0.0)
- SoraUI (from `https://github.com/ERussel/UIkit-iOS.git`, tag `1.11.1`)
- SoraUI (from `https://github.com/ERussel/UIkit-iOS.git`, commit `a4eb0139a27d77f11b8e5083e125c38ea82d8e5e`)
- Sourcery (~> 1.4)
- Starscream (from `https://github.com/ERussel/Starscream.git`, tag `4.0.8`)
- SubstrateSdk (from `https://github.com/nova-wallet/substrate-sdk-ios.git`, tag `1.14.0`)
Expand Down Expand Up @@ -213,8 +213,8 @@ EXTERNAL SOURCES:
:git: https://github.com/ERussel/Foundation-iOS.git
:tag: 1.1.0
SoraUI:
:commit: a4eb0139a27d77f11b8e5083e125c38ea82d8e5e
:git: https://github.com/ERussel/UIkit-iOS.git
:tag: 1.11.1
Starscream:
:git: https://github.com/ERussel/Starscream.git
:tag: 4.0.8
Expand Down Expand Up @@ -244,8 +244,8 @@ CHECKOUT OPTIONS:
:git: https://github.com/ERussel/Foundation-iOS.git
:tag: 1.1.0
SoraUI:
:commit: a4eb0139a27d77f11b8e5083e125c38ea82d8e5e
:git: https://github.com/ERussel/UIkit-iOS.git
:tag: 1.11.1
Starscream:
:git: https://github.com/ERussel/Starscream.git
:tag: 4.0.8
Expand Down Expand Up @@ -285,7 +285,7 @@ SPEC CHECKSUMS:
SnapKit: 97b92857e3df3a0c71833cce143274bf6ef8e5eb
SoraFoundation: 5b9d3c82d602150d2c2e65481c5eca5f5987c12c
SoraKeystore: 92cff6e2a12f212dd64ed089970ff7c365247b1c
SoraUI: e5ceb2cffe40145e589aa464e2e0a8d054011e0b
SoraUI: a3c1163a95c9dd1b6758ca90eb5bda2f4639d634
Sourcery: db66600e8b285c427701821598d07cf3c7e6c476
Starscream: b676ee89781677a2d8d36029a78c970710e2d3eb
SubstrateSdk: 1cb78eac5b05f2c259487f3027c3ae807f24c097
Expand All @@ -303,6 +303,6 @@ SPEC CHECKSUMS:
ZMarkupParser: a92d31ba40695b790f1da5fec98c3d4505341aff
ZNSTextAttachment: 4a9b4e8ee1ed087fc893ae6657dfb678f1a00340

PODFILE CHECKSUM: f37e3724d47617fb7ce7ed5e0a583491617b5899
PODFILE CHECKSUM: 812e09964099216590d3e74fcb350c38b2ccbd38

COCOAPODS: 1.13.0
862 changes: 842 additions & 20 deletions novawallet.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"colors" : [
{
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "0.100",
"blue" : "0xC7",
"green" : "0x9E",
"red" : "0x99"
}
},
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"colors" : [
{
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0x50",
"green" : "0x34",
"red" : "0xE5"
}
},
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
12 changes: 12 additions & 0 deletions novawallet/Assets.xcassets/iconActionSwap.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "container-transaction-type.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "container-token.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "cross-chain.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Binary file not shown.
12 changes: 12 additions & 0 deletions novawallet/Assets.xcassets/iconForward.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "arrow-forward.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
12 changes: 12 additions & 0 deletions novawallet/Assets.xcassets/iconInfoAccent.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "iconInfoAccent.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"images" : [
{
"filename" : "iconInfoFilled.pdf",
"filename" : "new-info-icon.pdf",
"idiom" : "universal"
}
],
Expand All @@ -10,6 +10,6 @@
"version" : 1
},
"properties" : {
"template-rendering-intent" : "template"
"template-rendering-intent" : "original"
}
}
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"images" : [
{
"filename" : "options-nav-bar.svg",
"filename" : "options.pdf",
"idiom" : "universal"
}
],
Expand Down

This file was deleted.

Binary file not shown.
Binary file not shown.
12 changes: 12 additions & 0 deletions novawallet/Assets.xcassets/iconPencilEdit.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "iconPencilEdit.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Binary file not shown.
Binary file not shown.
12 changes: 12 additions & 0 deletions novawallet/Assets.xcassets/iconSwap.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "iconSwapOnDetails.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"images" : [
{
"filename" : "iconInfo.pdf",
"filename" : "nova-wiki.pdf",
"idiom" : "universal"
}
],
Expand Down
Binary file not shown.
9 changes: 7 additions & 2 deletions novawallet/Common/Configs/ApplicationConfigs.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ protocol ApplicationConfigProtocol {
var inAppUpdatesEntrypointURL: URL { get }
var inAppUpdatesChangelogsURL: URL { get }
var slip44URL: URL { get }
var wikiURL: URL { get }
}

final class ApplicationConfig {
Expand Down Expand Up @@ -129,9 +130,9 @@ extension ApplicationConfig: ApplicationConfigProtocol {

var chainListURL: URL {
#if F_RELEASE
URL(string: "https://raw.githubusercontent.com/novasamatech/nova-utils/master/chains/v15/chains.json")!
URL(string: "https://raw.githubusercontent.com/novasamatech/nova-utils/master/chains/v16/chains.json")!
#else
URL(string: "https://raw.githubusercontent.com/novasamatech/nova-utils/master/chains/v15/chains_dev.json")!
URL(string: "https://raw.githubusercontent.com/novasamatech/nova-utils/master/chains/v16/chains_dev.json")!
#endif
}

Expand Down Expand Up @@ -252,5 +253,9 @@ extension ApplicationConfig: ApplicationConfigProtocol {
URL(string: "https://raw.githubusercontent.com/novasamatech/nova-utils/master/assets/slip44.json")!
}

var wikiURL: URL {
URL(string: "https://docs.novawallet.io/nova-wallet-wiki")!
}

// swiftlint:enable line_length
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ import SubstrateSdk

protocol GeneralStorageSubscriptionFactoryProtocol {
func getBlockNumberProvider(for chainId: ChainModel.Id) throws -> AnyDataProvider<DecodedBlockNumber>

func getAccountInfoProvider(
for accountId: AccountId,
chainId: ChainModel.Id
) throws -> AnyDataProvider<DecodedAccountInfo>
}

final class GeneralStorageSubscriptionFactory: SubstrateLocalSubscriptionFactory,
Expand All @@ -19,4 +24,24 @@ final class GeneralStorageSubscriptionFactory: SubstrateLocalSubscriptionFactory
shouldUseFallback: false
)
}

func getAccountInfoProvider(
for accountId: AccountId,
chainId: ChainModel.Id
) throws -> AnyDataProvider<DecodedAccountInfo> {
let codingPath = StorageCodingPath.account

let localKey = try LocalStorageKeyFactory().createFromStoragePath(
codingPath,
accountId: accountId,
chainId: chainId
)

return try getDataProvider(
for: localKey,
chainId: chainId,
storageCodingPath: codingPath,
shouldUseFallback: false
)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ typealias DecodedActiveEra = ChainStorageDecodedItem<ActiveEraInfo>
typealias DecodedEraIndex = ChainStorageDecodedItem<StringScaleMapper<EraIndex>>
typealias DecodedPayee = ChainStorageDecodedItem<Staking.RewardDestinationArg>
typealias DecodedBlockNumber = ChainStorageDecodedItem<StringScaleMapper<BlockNumber>>
typealias DecodedAccountInfo = ChainStorageDecodedItem<AccountInfo>
typealias DecodedCrowdloanFunds = ChainStorageDecodedItem<CrowdloanFunds>
typealias DecodedBagListNode = ChainStorageDecodedItem<BagList.Node>
typealias DecodedPoolMember = ChainStorageDecodedItem<NominationPools.PoolMember>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,23 @@ protocol GeneralLocalStorageHandler {
result: Result<BlockNumber?, Error>,
chainId: ChainModel.Id
)

func handleAccountInfo(
result: Result<AccountInfo?, Error>,
accountId: AccountId,
chainId: ChainModel.Id
)
}

extension GeneralLocalStorageHandler {
func handleBlockNumber(
result _: Result<BlockNumber?, Error>,
chainId _: ChainModel.Id
) {}

func handleAccountInfo(
result _: Result<AccountInfo?, Error>,
accountId _: AccountId,
chainId _: ChainModel.Id
) {}
}
Loading
Loading