@juno-network/swap
JunoSwap smart contract bindings
npm install @juno-network/swap
JunoSwap contracts
clients
import { contracts } from '@juno-network/swap';
const {
JunoSwap: {
JunoSwapClient,
JunoSwapQueryClient
}
} = contracts;
Queries
const queries = new JunoSwapQueryClient(
cosmwasmClient,
contractAddress
);
const amount = await queries.token1ForToken2Price({
token1Amount
});
Mutations
const client = new JunoSwapClient(
signingClient,
sender,
contractAddress
);
await client.addLiquidity({
maxToken2,
minLiquidity,
token1Amount,
expiration
});
Credits
🛠 Built by Cosmology — if you like our tools, please consider delegating to our validator ⚛️