Skip to content

elix1er/juno-dex.ts

 
 

Repository files navigation

@hopersio/contracts

Hopers.io smart contract interface.

yarn add @hopersio/contracts

Hopers.io Contracts

Clients

All contracts are scoped under the contracts object:

import { contracts } from "@hopersio/contracts"
const { CW20Base, HopersStaking, HopersSwapHopers, HopersSwapOthers } = contracts

Then each contract will have clients, for example for HopersStaking:

const { HopersStakingClient, HopersStakingMessageComposer, HopersStakingQueryClient } =
	HopersStaking

Queries

const queryClient = new HopersStakingQueryClient(wasmClient, contractAddress)

Mutations

const client = new HopersStaking(signingWasmClient, sender, contractAddress)
await client.stake(msg)

Credits

🛠 Built by Digital Kitchen, based on Cosmology ⚛️ goodness!

Using CosmWasm TS Codegen:

Packages

No packages published

Languages

  • TypeScript 96.7%
  • JavaScript 3.3%