@hopersio/contracts
v0.1.4
Published
Hopers.io contracts frontend library
Downloads
1
Readme
@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:
- @cosmwasm/ts-codegen for generated CosmWasm contract Typescript classes