0.10.1 • Published 4 months ago

@juno-network/swap v0.10.1

Weekly downloads
-
License
SEE LICENSE IN LI...
Repository
github
Last release
4 months ago

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

0.10.1

4 months ago

0.10.0

1 year ago

0.9.0

1 year ago

0.8.0

2 years ago

0.7.0

2 years ago

0.6.0

2 years ago

0.3.0

2 years ago

0.3.5

2 years ago

0.5.0

2 years ago

0.3.2

2 years ago

0.4.0

2 years ago

0.3.1

2 years ago

0.3.4

2 years ago

0.3.3

2 years ago

0.2.0

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.1

2 years ago