Replies: 4 comments 4 replies
-
Most of the functions listed above are similar to our thought. With Amarok, several steps of transfer will be eliminated. It will be easier for us as developers to call less complex functions while still being able to build cleaner apps on top of the protocol. Below are the lists of functions being used in connextscan and the connext bridge:
connext bridge
Amarok SDK (please correct me if I misunderstand anything)
Function to check the Fee estimation
Function to check the Active Transactions for each user Function to check the Max Transfer Size & assetBalance |
Beta Was this translation helpful? Give feedback.
-
The functions sound great, but without knowing what parameters are required and how the response data might look like I can mainly tell you what I would wish for:
Will the sdk also provide functionality needed to increase the gas for the destination chain calls? |
Beta Was this translation helpful? Give feedback.
-
SDK functions looks great. Few points:
|
Beta Was this translation helpful? Give feedback.
-
This should be available from the subgraph -- you can monitor assets via
How flexible do you envision this being? i.e. if the user needs more MATIC but has enough USDC, should this be able to get the proper amount of USDC to swap into MATIC? How would that information be conveyed? If you envision this being extremely flexible, then we may need a
Can we name this |
Beta Was this translation helpful? Give feedback.
-
Purpose
The purpose of the Amarok Typescript SDK is to facilitate front end integrations. The front end developer should not know anything about smart contract addresses, ABIs, subgraphs, or other implementation details.
Integrations that will use this are:
Functions
The SDK needs to contain the following functions to be useful:
getChainsAndAssets
: Provides all the chains and assets that we support (where do we get this info?).routeStatus
: Provides status for a route, including if it's supported, liquidity available, etc. We can use this to signal if routes are not working/shut down for any reason. Unclear if subgraph sync status is required here but if so it can be included here.estimateFee
: Estimates all fees including router fees and gas fees.checkApproval
: Get status of token approval for Connext.sol contract.xcall
: Initiates cross-domain transfers.getTransferStatus
: Gets transfer status for a specific transfer.getPendingTransfers
: Get transfers in progress for a user.getTransfers
: Get historical transfers for a user.The SDK needs to be aware of environments such as
staging
/prod
, andtestnet
/mainnet
.Beta Was this translation helpful? Give feedback.
All reactions