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

Refactor/multi network custom token #958

Merged
merged 18 commits into from
Sep 14, 2023

Conversation

aristidesstaffieri
Copy link
Contributor

@aristidesstaffieri aristidesstaffieri commented Sep 13, 2023

Adds migration to key token ID lists by network.
Refactors storage getters/setters to work with network to get/set token IDs.

Ticket: https://stellarorg.atlassian.net/browse/WAL-1100

@aristidesstaffieri aristidesstaffieri added the wip not for merging yet label Sep 13, 2023
@aristidesstaffieri aristidesstaffieri self-assigned this Sep 13, 2023
* renames url field in network settings, adds soroban rpc url field

* adds handling for optional soroban rpc support

* also config custom soroban rpcs

* refactor helper to be more concise
@aristidesstaffieri aristidesstaffieri marked this pull request as ready for review September 13, 2023 19:47
@aristidesstaffieri aristidesstaffieri changed the title [WIP] Refactor/multi network custom token Refactor/multi network custom token Sep 13, 2023
Base automatically changed from release/5.6.0 to release/5.5.0 September 13, 2023 23:28
* docs(): bumping release to 5.4.0

* Empty-Commit

---------

Co-authored-by: GitHub Action <[email protected]>
Co-authored-by: Piyal Basu <[email protected]>
@aristidesstaffieri aristidesstaffieri removed the wip not for merging yet label Sep 14, 2023
@socket-security
Copy link

New dependencies detected. Learn more about Socket for GitHub ↗︎

Packages Version New capabilities Transitives Size Publisher
@stellar/wallet-sdk 0.8.0 network +0 5.84 MB piyalbasu
@types/semver 7.5.2 None +0 23.8 kB types

@aristidesstaffieri aristidesstaffieri merged commit 47d7216 into release/5.5.0 Sep 14, 2023
2 checks passed
@aristidesstaffieri aristidesstaffieri deleted the refactor/multi-network-custom-token branch September 14, 2023 21:35
piyalbasu added a commit that referenced this pull request Sep 16, 2023
* adds the bump footprint expiration op type to tx history

* WIP, refactors history item to build async rows

* clean up and organize soroban related helpers

* Added translations

* remove unwanted files from translations commit

* removes helper shim and fixes import pattern

* use sdk base fee, add restore footprint header title, use more direct i128 helper

* fixes soroban tx submission error handling, bumps soroban-client

* fix use of source account in SorobanContext newTxBuilder

* split transfer and mint history items

* Added translations

* WIP, adds base states for testing soroban token payment

* adds mock soroban context, tests token payment flow

* adds tests for soroban helpers

* adds token amount dom test

* adds new path for signing auth entries, adds SignAuthEntry component and related API hooks

* Adds basic signing component for auth entry sign flow

* Adds new external api signAuthEntry, adds docs, adds sign auth entry component

* Added translations

* adds buildInvocationTree to render formatted json for invocations and sub invocations

* use correct key in responseQueue handler for signAuthEntry, clean up AuthEntry

* splits SignTx and SignBlob, makes new route for sign-blob

* use buildInvocationTree in transaction render for signTx

* Added translations

* Added translations

* remove accidental tarball commit

* adds missing loading states, fixes missing error handling in message handler

* remove extra line

* refactors signing flows to use a common helper hook

* dont allow HW signing on sign blob or sign auth entry, not currently supported in ledger API

* Added translations

* Added translations

* updates HW wallet not supported text

* Added translations

* refactors SorobanContext to accoutn for missing rpc urls

* moves dispatch to be in shared signing hook

* add translations

* Release/5.6.0 (#954)

* Updated onboarding last steps (#955)

* Functional, needs styling

* Use proper apostrophe

* Network Settings - Soroban RPC URL (#953)

* renames url field in network settings, adds soroban rpc url field

* adds handling for optional soroban rpc support

* also config custom soroban rpcs

* refactor helper to be more concise

* Added translations

---------

Co-authored-by: Iveta <[email protected]>
Co-authored-by: aristides <[email protected]>

* Refactor/multi network custom token (#958)

* renames url field in network settings, adds soroban rpc url field

* adds handling for optional soroban rpc support

* also config custom soroban rpcs

* Updated onboarding last steps (#955)

* Functional, needs styling

* Use proper apostrophe

* refactor helper to be more concise

* refactors storage getter/setter to account for networks for token id lists

* Network Settings - Soroban RPC URL (#953)

* renames url field in network settings, adds soroban rpc url field

* adds handling for optional soroban rpc support

* also config custom soroban rpcs

* refactor helper to be more concise

* adds migration to network keyed toke id list

* Bump versions to 5.4.0 (#960)

* docs(): bumping release to 5.4.0

* Empty-Commit

---------

Co-authored-by: GitHub Action <[email protected]>
Co-authored-by: Piyal Basu <[email protected]>

* refactors to a network keyed object of token IDs for token id list

* fixes migration to be backwards compatible

* adds storage version and uses storage version in token id list migration

* fix typo in storage key

* hardcode storage schema version, decouple from package version

* updates comment for version migration

---------

Co-authored-by: Iveta <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: GitHub Action <[email protected]>
Co-authored-by: Piyal Basu <[email protected]>

* add prettier changes

* Added translations

* WIP: upgrade soroban-client (#961)

* upgrade soroban-client

* updates to new simulation response (#962)

* updates to new simulation response

* formatting tweaks

* fix broken tests

---------

Co-authored-by: Piyal Basu <[email protected]>

---------

Co-authored-by: aristides <[email protected]>

* move schema update

* fix migration key

* rm log

* fix account history

---------

Co-authored-by: Aristides Staffieri <[email protected]>
Co-authored-by: Iveta <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: GitHub Action <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants