crocswap / sdk Goto Github PK
View Code? Open in Web Editor NEW๐ ๐๐ An SDK for building applications on top of CrocSwap
License: MIT License
๐ ๐๐ An SDK for building applications on top of CrocSwap
License: MIT License
SDK can parse a receipt from Ethers.js and return formatted data about a CrocSwap transaction
SDK can only parse a receipt from Web3.js
CROC_SWAP_ADDR: "0xB6Ff2e53408f38A5a363586746d1dB306AF5caa4",
QUERY_ADDR: "0x3F6B274529dDe713CF7703129f219e38dC0D83b5",
A developer should be able to generate an Ambient swap widget for integration into another web app using the SDK.
Reposition Mode should have an unbalanced mode, that operates similar to Advanced mode in the Range component.
Steps to complete this:
New SDK functions
Connect logic to chart to allow similar draggers
Mock up new unbalanced mode Reposition component in Figma
The SDK should have functions to estimate L1 and L2 fee costs for a given transaction.
should be able to pass in a quantity of 1 with decimals = 18 and not have bignum overflow
An optional value lpConduit
can be passed in the CrocLpOpts opts
param of LP functions (mintAmbient, mintConc, burnAmbient, etc.). lpConduit
is already a defined parameter at the smart contract level, but functionality is not exposed to the SDK.
Currently, lpConduit
is hardcoded as AddressZero
prior to encoding, so an LP conduit contract address can never be utilized.
await croc.poolEth(USDC).mintAmbientQuote(50, [0.0001, 0.001], { lpConduit: SOME_LP_CONDUIT_ADDRESS })
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.