@xiti/swap
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

@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 ⚛️

Readme

Keywords

none

Package Sidebar

Install

npm i @xiti/swap

Weekly Downloads

1

Version

0.0.1

License

SEE LICENSE IN LICENSE

Unpacked Size

186 kB

Total Files

35

Last publish

Collaborators

  • xiti