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 to move some logic from the CosmosGateway route to the cosmos context #941

Merged

Conversation

M-Picco
Copy link
Collaborator

@M-Picco M-Picco commented Sep 8, 2023

Start with getForeignAsset

@socket-security
Copy link

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

Packages Version New capabilities Transitives Size Publisher
@babel/plugin-proposal-private-property-in-object 7.21.11 None +0 19.5 kB nicolo-ribaudo

🚮 Removed packages: @injectivelabs/sdk-ts@1.0.211, @terra-money/terra.js@3.1.10

@M-Picco M-Picco marked this pull request as ready for review September 11, 2023 13:03
sdk/src/contexts/cosmos/context.ts Outdated Show resolved Hide resolved
@M-Picco M-Picco force-pushed the refactor/gateway-cosmos-context branch from ec042d0 to f87367f Compare September 11, 2023 14:27
…e cosmos context. Remove some sdk unneeded dependencies
@M-Picco M-Picco force-pushed the refactor/gateway-cosmos-context branch from f87367f to c8f6dc6 Compare September 11, 2023 14:28
@M-Picco M-Picco merged commit ab3950a into feature/configurable-routes Sep 11, 2023
1 of 5 checks passed
@M-Picco M-Picco deleted the refactor/gateway-cosmos-context branch September 11, 2023 14:40
anondev2323 pushed a commit that referenced this pull request Sep 11, 2023
…e cosmos context. Remove some sdk unneeded dependencies (#941)
anondev2323 pushed a commit that referenced this pull request Sep 12, 2023
…e cosmos context. Remove some sdk unneeded dependencies (#941)
derpy-duck pushed a commit that referenced this pull request Sep 12, 2023
* fix: standardize route enum naming and create type

* fix: type errors

* fix: type error and install

* fix: circular import

* route logic and organize network configs

* add: getMinSendAmount on routes

* fix: imports and type errors

* fix: forgot to commit type fixes

* fix: deal with possibly undefined values

* fix: amount input

* refactor: gas estimation logic

* refactor: gas estimation logic

* fix: RouteOperator export/import

* fix: available route logic

* fix: await promise, hide native gas if none

* fix: validate route and get available routes

* add: supportedChain logic for routes

* fix: address TODOs for claim gas estimations

* remove comment

* fix: circular import

* debug: gas estimate shows as 0

* rename to chain

* fix: format gas units correctly

* refactor: delete getTokenBalance and getNativeBalance from routes

* fix: bug in amount input

* fix: pass in env rpcs

* enhance: supportedSourceTokens logic

* fix: rpc fields getting overridden in Object.assign

* fix: random bug fixes

* add: balances cache

* fix: error in addToWallet component

* fix: remove check for bridge/relay source tokens and add validation

* Move getForeignAsset gateway logic from the CosmosGateway route to the cosmos context. Remove some sdk unneeded dependencies (#941)

* fix: rebase errors

* clean: imports

* fix: duplicate relay options listed instead of bridge/relay

* fix: check AUTOMATIC_TRANSFER instead of payload ID

* fix: add getTxGasUsed to Solana context

* lint

* Add missing types to ErrorBoundary

---------

Co-authored-by: Martin Picco <martin@xlabs.xyz>
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.

2 participants