This repository has been archived by the owner on Apr 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58f88a4
to
00b2f9a
Compare
- swapPoolTokenFromLPTokenAddress - swapPoolTokenFromSwapAddress - swapPoolTokenForTypeForChain - swapPoolTokensForChainId
Add docstrings to params type and function
296746c
to
4bbd891
Compare
4bbd891
to
6038d0a
Compare
6038d0a
to
b47bd0c
Compare
- token: add coingeckoId field to Token interface - tokens: add coingeckoId constructor params to tokens with known ids (per #120)
For chains whose chain currencies have CoinGecko ids, provide that value.
b47bd0c
to
dedd618
Compare
dedd618
to
ffe28ff
Compare
Thanks for the contribution, but this repo is now deprecated and remaining issues being closed. The next iteration of the sdk can be found here |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
build
Issues and PRs relating to build/compilation
enhancement
New feature or request
help wanted
Extra attention is needed
new token
Changesets which include new tokens
new-network
Changesets which include new networks
tests
Changesets which add more or improve existing tests
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What's new?
Liquidity Pools
Chains
Tokens
New addresses for existing tokens
Features, functions, fixes, and more
ci
"target"
field oftsconfig.json
to"ES5"
, enabling greater backwards-compatibility with older NodeJS versions and various build systems (2ac1627)internal/gen
(5af24cc)bridge
checkBridgeTransactionComplete
inSynapseBridge
namespace, enabling basic checking of bridge transaction status (b444b15)common/networks
bridgeableTokens
getter function toNetwork
class (179d702)tokenswap
addLiquidity
,calculateAddLiquidity
,removeLiquidity
,calculateRemoveLiquidity
,removeLiquidityOneToken
,calculateRemoveLiquidityOneToken
(6e230fd, 57e6fdb, caa4b5d)detailedTokenSwapMap()
result (8b9c696)UnsupportedSwapError
type into an extension of inbuiltError
type (cc645f5)entities
SynapseBridge
,L2BridgeZap
, etc. (7359c56)tokens
gasTokenForChain
function toTokens
namespace, which returns the native currency token object for the passed Chain ID -- if it exists. (7d9b47d)token
hash
property toToken
interface.hash
is unique to an individual Token instance and can be used for uniqueness checks. Closes Unique symbols for tokens #111 (28846fc)coingeckoId
property toToken
interface.coingeckoId
is an optional property which contains the CoinGecko ID of a token, if it is known. Closes support for coingecko ids #120 (2e1c976)chainid
networks
supportsEIP1559
property toNetworks
class. This property is a boolean reflecting whether a network supports EIP-1559 (067b75d)chainCurrencyCoingeckoId
property toNetwork
class. For chains whose chain currencies have CoinGecko ids, this property provides that id.common/gasoptions
Refactors
ChainId
andSwapType
from enum toconst object
usingas const
syntax, enabling better control of inputs, parameters, and types. (3094359, 2afa767)Testing improvements
Thank you @BlazeWasHere for adding several new test cases to the test suites:
Tokens.TokenFromSymbol
test cases (82d395d)Additionally, more test cases for various smaller parts have been implemented.