@hopersio/contracts
v0.1.4
Published
Hopers.io contracts frontend library
Readme
@hopersio/contracts
Hopers.io smart contract interface.
yarn add @hopersio/contractsHopers.io Contracts
Clients
All contracts are scoped under the contracts object:
import { contracts } from "@hopersio/contracts"
const { CW20Base, HopersStaking, HopersSwapHopers, HopersSwapOthers } = contractsThen each contract will have clients, for example for HopersStaking:
const { HopersStakingClient, HopersStakingMessageComposer, HopersStakingQueryClient } =
HopersStakingQueries
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:
- @cosmwasm/ts-codegen for generated CosmWasm contract Typescript classes
