0.1.4 ā¢ Published 1 year ago
@hopersio/contracts v0.1.4
@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